05.10.2013, 08:40
hi,iwant to know how to use foreach i've read about it forum.sa-mp.com/showthread.php?t=92679
but i dont know what is the usage...
but i dont know what is the usage...
for(new i=0; i < MAX_PLAYERS; i++)
{
//code
}
foreach(new i : Player)
{
//code
}
for(new i = 0; i < MAX_PLAYERS; i++)
{
if(IsPlayerConnected(i))
{
//stuff
}
}
foreach(Player, i)
{
//stuff
}