-Solved- how to make this Dynamic Arrays?
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.
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.
float isnt so exactly, i found pev(index,pev_origin,..) in fakemeta just now. i thought only engine can make float origin before. :)
fakemeta > fun, cstrike and engine
fakemeta <3
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
close this topic plz
so many bugs, i'll give up
// finally solved @ amxx forum
Please log in to post replies.