31.05.2010, 18:46
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.
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.
}