Playerid for ongamemodeinit
#2

You can either do this
pawn Код:
for (new i = 0; i < MAX_PLAYERS; i ++)
{
Dead[i] = 0;
}
or
pawn Код:
// under onplayerconnect
Dead[playerid] = 0;
Or don't care. Variables are automatically set to zero when player joins / game mode starts.
OnGameModeInit is called ONLY when you start the gamemode not when you connect.
Reply


Messages In This Thread
Playerid for ongamemodeinit - by Zack9764 - 23.01.2011, 13:41
Re: Playerid for ongamemodeinit - by admantis - 23.01.2011, 13:43
Re: Playerid for ongamemodeinit - by Mike Garber - 23.01.2011, 13:45
Re: Playerid for ongamemodeinit - by Zack9764 - 23.01.2011, 13:48

Forum Jump:


Users browsing this thread: 5 Guest(s)