29.04.2011, 20:51
hi,
i know this is a kinda noob question but im wondering what exactly this IsPlayerConnected function does.
E.g. i use this in my map change code like this:
Now i think everyone knows what this does
But can i also use this loop without the IsPlayerConnected function?
Would it be even better or faster?
Or would there be any bugs possible if i use this code without the IsPlayerConnected thing?
I hope u can help me with my stupid and strange question
regards, blackwolf.
i know this is a kinda noob question but im wondering what exactly this IsPlayerConnected function does.
E.g. i use this in my map change code like this:
pawn Код:
for(new i = 0; i < MAX_PLAYERS; i++)
{
if(IsPlayerConnected(i))
{
SetPlayerPos(i,X,Y,Z);
}
}
But can i also use this loop without the IsPlayerConnected function?
Would it be even better or faster?
Or would there be any bugs possible if i use this code without the IsPlayerConnected thing?
I hope u can help me with my stupid and strange question
regards, blackwolf.