23.11.2013, 00:47
So, I'm making a bomb system.
I want to store each bomb created into an array for Delete that object later, but I wanna make possible plant more than 1 bomb at same time.
So I wanna save each Bomb Object in 1 variable.
їHow can store each object in the different 5 slots? For example, if I have 1 Bomb Planted, then next should save at second slot:
And so on....
ї?
Thanks.
I want to store each bomb created into an array for Delete that object later, but I wanna make possible plant more than 1 bomb at same time.
So I wanna save each Bomb Object in 1 variable.
pawn Code:
new BombObject[5][MAX_PLAYERS];
//In /plant CMD
BombObject[++][playerid] = CreateObject(1252,0,0,0,0,0,0,0);
pawn Code:
BombObject[2][playerid] = CreateObject(1252,0,0,0,0,0,0,0);
ї?
Thanks.