-Solved- how to make this Dynamic Arrays?

Started by Caffeine
25/10/2008 14:29
Page 1 of 1
Caffeine25/10/2008 14:29(edited 13/01/2009 04:30)

look at this: http://caffeine.ampaste.net/m50f161e


i want to make curPos[33][3601][3] to curPos[33][Dynamic][3] , need HELP!



SchlumPF, i can't understand "cellarray.inc" meaning.

i google "amxx dynamic array", and found this simple code: http://caffeine.ampaste.net/m5c3c81cf

however, can't put this to my code.

NumB25/10/2008 14:50


new Array:g_aCurPos[33];
new g_iCurPosNumber[33];

...

public plugin_init()
{
...

for( new iTemp=1; iTemp<33; iTemp++ )
g_aCurPos[iTemp] = ArrayCreate(3);
}

...

stock push_integer_position(iPlrId, iPos[3])
{
ArrayPushString(g_aCurPos[iPlrId], iPos);
return g_iCurPosNumber[iPlrId]++;
}

stock clear_array(iPlrId)
{
ArrayClear(g_aCurPos[iPlrId]);
g_iCurPosNumber[iPlrId] = 0;

return 1;
}

stock get_integer_pos(const iPlrId, const iPositionId, iOirigin[3])
ArrayGetString(g_aCurPos[iPlrId], iPositionId, iOirigin, 3);



You asked help not in Float value, so here it is.

Caffeine25/10/2008 20:25(edited 25/10/2008 20:25)

float isnt so exactly, i found pev(index,pev_origin,..) in fakemeta just now. i thought only engine can make float origin before. :)

SchlumPF26/10/2008 01:22

fakemeta > fun, cstrike and engine

fakemeta <3

Caffeine28/10/2008 18:41(edited 28/10/2008 21:09)

Error(when press Stop button sometimes):
.....
L 10/29/2008 - 01:25:23: Invalid cellvector handle provided (2:50:50)
L 10/29/2008 - 01:25:23: [AMXX] Displaying debug trace (plugin "KZChasing.amxx")
L 10/29/2008 - 01:25:23: [AMXX] Run time error 10: native error (native "ArrayGetString")
...

here is ths code: http://caffeine.ampaste.net/m765fa43b

Caffeine29/10/2008 21:55(edited 13/01/2009 04:29)

close this topic plz

so many bugs, i'll give up


// finally solved @ amxx forum

Page 1 of 1

Please log in to post replies.