14.10.2010, 23:07
hmm i was looking for something , you know like a checkpoint but i cant destroy a certain checkpoint for all the players .. how to do that ?
for(new i; i < MAX_PLAYERS; i ++)
{
if(IsPlayerConnected(i))
{
DisablePlayerCheckpoint(i);
}
}
for(new x=0; x < MAX_PLAYERS; x++)
{
if(!IsPlayerConnected(x)) continue;
DisablePlayerCheckpoint(x);
}
Yes, it's tabbed properly, and you should always make sure new coders are provided code that is indented correctly or you might teach them bad habits.
|
Off topic:
This forum requires that you wait 120 seconds between posts. Please try again in 74 seconds. This forum requires that you wait 120 seconds between posts. Please try again in 45 seconds. This forum requires that you wait 120 seconds between posts. Please try again in 12 seconds. This forum requires that you wait 120 seconds between posts. Please try again in 5 seconds. |