I simple cant get the codes working...
#1

Hello everyone i had this under gamemodeinit...

Код:
if(Derby[playerid] == 1)
{
	AddPlayerClass(104, 1958.3783, 1343.1572, 15.3746, 269.1425, 0, 0, 0, 0, 0, 0);
}

if(DeathMatch[playerid] == 1)
{
	AddPlayerClass(105, 1958.3783, 1343.1572, 15.3746, 269.1425, 0, 0, 0, 0, 0, 0);
	AddPlayerClass(104, 1958.3783, 1343.1572, 15.3746, 269.1425, 0, 0, 0, 0, 0, 0);
}
And i got 2 errors saying:

Код:
error 017: undefined symbol "playerid"
so i tried to define it and put

Код:
new playerid;
and there were no errors.. so i went to test on my server and the skins wouldnt show up on each mode..... just cj would..


anyone know how to fix this?

Thanks
LOrenc

Reply
#2

Callback OnGameModeInit() has no playerid argument, use for loop.

pawn Код:
for(new i; i < MAX_PLAYERS; i++)
Reply
#3

ohh thanks for forgot about the loops
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)