10.02.2014, 14:45
(
Последний раз редактировалось Unfriendly; 10.02.2014 в 15:48.
)
Quote:
You can use a loop.
Voila, a loop within a loop also works, too, where 'i' are the players and 'a' are the different drops. |
If I store all the drop-able objects in an enum, how do I make the number go up on each drop?
Like, onplayerdeath, if player has a gascan, creates an object labeled ditems[playerid][gascan]+1;
Like how do I keep from overwriting the variable of the last one dropped?
edit:
I think I'm going to do it like this.
Код:
Onplayerdeath(playeridblahblah) { if(gascan[playerid] > 1) { if(isvaliddynamicobject(gasdrop[playerid]) { new drop = gasdrop[playerid]+1; drop=createdynamicobject(blahblah); } } }