Does these two loops do the same thing?
#3

Hi Lorenc, thanks for your answer.

Btw, from your tutorial, this

pawn Code:
public OnGameModeExit()
{
    for(new i; i != MAX_PLAYERS; i++) OnPlayerDisconnect(i, 1);
    db_close(Database);
    return 1;
}
Doesn't it need a IsPlayerConnected check?

EDIT:

I gotta another question.

Example:

PlayerInfo[playerid][pAdminLevel] = 0;

Where is it best to put this? OnPlayerConnect or OnPlayerDisconnect? Or maybe both?

Thanks
Reply


Messages In This Thread
Does these two loops do the same thing? - by Cowboy - 01.09.2011, 10:39
Re: Does these two loops do the same thing? - by Lorenc_ - 01.09.2011, 10:41
Re: Does these two loops do the same thing? - by Cowboy - 01.09.2011, 10:46
Re: Does these two loops do the same thing? - by Babul - 01.09.2011, 11:16
Re: Does these two loops do the same thing? - by =WoR=Varth - 01.09.2011, 11:28
Re: Does these two loops do the same thing? - by AndreT - 01.09.2011, 11:46
Re: Does these two loops do the same thing? - by =WoR=Varth - 01.09.2011, 11:56
Re: Does these two loops do the same thing? - by Cowboy - 01.09.2011, 11:58
Re: Does these two loops do the same thing? - by =WoR=Varth - 01.09.2011, 12:08
Re: Does these two loops do the same thing? - by Cowboy - 01.09.2011, 12:17

Forum Jump:


Users browsing this thread: 4 Guest(s)