31.12.2013, 19:40
Hello guys I have a question, is this loop same like the down one?
to
Thanks guys!
pawn Код:
new x=0;
while(x != MAX_PLAYERS)
{
if(IsPlayerConnected(x) && GetPlayerState(x) != PLAYER_STATE_NONE)
{
SetPlayerTime(x, hours, minutes);
}
x++;
}
pawn Код:
for (new x = 0; x<MAX_PLAYERS; x++)
{
if (IsPlayerConnected(x) && GetPlayerState(x) != PLAYER_STATE_NONE) //but i dunno if here is != PLAYER_STATE_NONE or ==
{
SetPlayerTime(x, hours, minutes);
}
}