undefined symbol "classid" -
CarRamper - 24.06.2016
What's Wrong In It
Код:
public OnPlayerRequestClass(playerid, classid)
{
SetTimerEx("T3", 1000, false, "i", playerid);
}
forward T3(playerid);
public T3(playerid)
{
SetPlayerPos(playerid, 268.4988,1884.0615,-30.0938);
SetPlayerFacingAngle(playerid, 184.2539);
SetPlayerCameraPos(playerid, 268.5090,1880.9513,-30.3906);
SetPlayerCameraLookAt(playerid, 268.4988,1884.0615,-30.0938);
SetPlayerTeamFromClass(playerid, classid);
switch(classid)
{
case 0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75:
{
GameTextForPlayer(playerid, "~g~Grove", 10000, 4);
}
}
return 1;
}
Error
Код:
C:\Users\Anurag\Desktop\Most Wanted Cops and Robbers v1.1\gamemodes\MWCNR.pwn(3497) : error 017: undefined symbol "classid"
C:\Users\Anurag\Desktop\Most Wanted Cops and Robbers v1.1\gamemodes\MWCNR.pwn(3498) : error 017: undefined symbol "classid"
Error Lines
Код:
SetPlayerTeamFromClass(playerid, classid);
switch(classid)
Re: undefined symbol "classid" -
MBilal - 24.06.2016
Код:
public OnPlayerRequestClass(playerid, classid)
{
SetTimerEx("T3", 1000, false, "ii", playerid,classid);
}
forward T3(playerid,classid);
public T3(playerid,classid)
{
SetPlayerPos(playerid, 268.4988,1884.0615,-30.0938);
SetPlayerFacingAngle(playerid, 184.2539);
SetPlayerCameraPos(playerid, 268.5090,1880.9513,-30.3906);
SetPlayerCameraLookAt(playerid, 268.4988,1884.0615,-30.0938);
SetPlayerTeamFromClass(playerid, classid);
switch(classid)
{
case 0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75:
{
GameTextForPlayer(playerid, "~g~Grove", 10000, 4);
}
}
return 1;
}
But i recommend you not to use Timer if you need it then use it and kill it properly otherwise it lag your server.
Re: undefined symbol "classid" -
CarRamper - 24.06.2016
Ooo I Remember Thanks