13.06.2018, 23:50
Let's say I have a 2d array
new OBJECTS[MAX_PLAYERS][5];
and it works like this
objects[1]
objects[2]
objects[3]
Now this is for global.
But let's say I want to make it per player.
How do i assign the numbers automatically.
EG:
new OBJECTS[MAX_PLAYERS][5];
and it works like this
objects[1]
objects[2]
objects[3]
Now this is for global.
But let's say I want to make it per player.
How do i assign the numbers automatically.
EG:
Code:
cmd:object(playerid,params[]) { objects[assign automatically per player instead of always being 1,2,3,4,5] = createplayerobjectxxx return 1; }