Playerid don't work in OnGameModeInit
#7

You can't use 'playerid' integer in OnGameModeInit because it has no value then.
playerid has a value which is chosen when player joins the server. If you define playerid it has a value of 0 so the code or whatever you are doing will work for ID 0.

The only solution is to use what ihatetn931 said. A loop.
pawn Код:
for(new i; i != GetMaxPlayers(); i++)
{
    // Use i istead of playerid then.
}
Reply


Messages In This Thread
Playerid don't work in OnGameModeInit - by Ihsan_Cingisiz - 31.05.2010, 13:36
Re: Playerid don't work in OnGameModeInit - by Jeffry - 31.05.2010, 13:49
Re: Playerid don't work in OnGameModeInit - by LTomi - 31.05.2010, 13:50
Re: Playerid don't work in OnGameModeInit - by (.Aztec); - 31.05.2010, 14:13
Re: Playerid don't work in OnGameModeInit - by ihatetn931 - 31.05.2010, 18:44
Re: Playerid don't work in OnGameModeInit - by NewTorran - 31.05.2010, 18:45
Re: Playerid don't work in OnGameModeInit - by RyDeR` - 31.05.2010, 18:46

Forum Jump:


Users browsing this thread: 1 Guest(s)