How to check from arrays?
#5

Can i do like this?:

Код:
new Used[5];

OnPlayerSpawn(playerid)
{
new spawn = random(sizeof(Array));
if(Used[spawn] == 0)
{
SetPlayerPos(playerid, Array[spawn][0].....);
for(new i = 0; i < sizeof(Array); i++)
{
Used[i] == 1;
}
}
return 1;
}
Reply


Messages In This Thread
How to check from arrays? - by K0P - 24.06.2016, 15:45
Re: How to check from arrays? - by Sjn - 24.06.2016, 15:57
Re: How to check from arrays? - by K0P - 24.06.2016, 15:58
Re: How to check from arrays? - by Konstantinos - 24.06.2016, 16:08
Re: How to check from arrays? - by K0P - 24.06.2016, 16:12
Re: How to check from arrays? - by Konstantinos - 24.06.2016, 16:18
Re: How to check from arrays? - by Stinged - 24.06.2016, 16:23

Forum Jump:


Users browsing this thread: 1 Guest(s)