24.05.2009, 07:58
Hey there. I have a question. If i'm using a loop ( for ) and i use IsPlayerConnected(i) i need to use
?
e.g.:
pawn Code:
i != INVALID_PLAYER_ID
e.g.:
pawn Code:
for(new i = 0; i < GetMaxPlayers(); i++)
{
if (PlayerInfo[i][Key] == PlayerInfo[playerid][Key])
{
if(IsPlayerConnected(i))
{
if(i != INVALID_PLAYER_ID)
{