Quote:
Originally Posted by Abagail
Example:
pawn Код:
for(new i; i < sizeof(playerMap[playerid]); i++) { playerMap[playerid][i] = CreateDynamicObject(playerObjects[playerid][i][oModel], playerObjects[playerid][i][oX], playerObjects[playerid][i][oY], playerObjects[playerid][i][oZ]); }
Then to destroy, etc:
pawn Код:
for(new i; i < sizeof(playerMap[playerid]); i++) { if(IsValidDynamicObject(playerMap[playerid][i])) { DestroyDynamicObject(playerMap[playerid][i]); } }
This allows you to easily loop through the objects and perform a various array of operations.
|
Well yeah, I want to do it without using a multi dimensional array.
Because the map has re-textures aswell.