"error 017: undefined symbol "vehicleid"" problem. - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: "error 017: undefined symbol "vehicleid"" problem. (
/showthread.php?tid=560952)
"error 017: undefined symbol "vehicleid"" problem. -
OMonger - 31.01.2015
public OnPlayerCommandText(playerid, cmdtext[])
{
if (strcmp("/droppanels", cmdtext, true, 10) == 0)
{
GetVehicleDamageStatus(vehicleid, panels, doors, lights, tires);
UpdateVehicleDamageStatus(vehicleid, 15, doors, lights, tires);
return 1;
}
return 0;
}
That's the command it's saying is wrong. The error message comes up with: "error 017: undefined symbol "vehicleid""
Re: "error 017: undefined symbol "vehicleid"" problem. -
nezo2001 - 31.01.2015
PHP Code:
new vehicleid = GetPlayerVehicleID(playerid);
Re: "error 017: undefined symbol "vehicleid"" problem. -
OMonger - 31.01.2015
It now crashes the pawn compiler library when I try to compile it.
Re: "error 017: undefined symbol "vehicleid"" problem. -
nezo2001 - 31.01.2015
PHP Code:
new panels, doors, lights, tires;
Re: "error 017: undefined symbol "vehicleid"" problem. -
OMonger - 31.01.2015
That's already there
Re: "error 017: undefined symbol "vehicleid"" problem. -
nezo2001 - 31.01.2015
It should be like this
PHP Code:
new panels, doors, lights, tires;
GetVehicleDamageStatus(vehicleid, panels, doors, lights, tires);
UpdateVehicleDamageStatus(vehicleid, panels, doors, lights, 15);