SA-MP Forums Archive
Noob to scripting, any idea why this doesn't work? - 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: Noob to scripting, any idea why this doesn't work? (/showthread.php?tid=592764)



Noob to scripting, any idea why this doesn't work? - JonesyFoCoTDM - 29.10.2015

Код:
YCMD:poptires(playerid, params[], help)
{
    new panels, doors, lights, tires;
	GetVehicleDamageStatus(vehicleid, panels, doors, lights, tires);
	UpdateVehicleDamageStatus(vehicleid, panels, doors, lights, 5); //Pops the back two wheels
	return 1;
}
This is the errors I get when compiling:

Код:
C:\Users\Lee\Desktop\SA-MP SCRIPTING\pawno\jonesys-sandbox.pwn(432) : error 017: undefined symbol "vehicleid"
C:\Users\Lee\Desktop\SA-MP SCRIPTING\pawno\jonesys-sandbox.pwn(433) : error 017: undefined symbol "vehicleid"
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


2 Errors.



Re: Noob to scripting, any idea why this doesn't work? - SkinnyF - 29.10.2015

Try this:
Код:
YCMD:poptires(playerid, params[], help)
{
    new vehicleid = GetPlayerVehicleID(playerid);
    new panels, doors, lights, tires;
	GetVehicleDamageStatus(vehicleid, panels, doors, lights, tires);
	UpdateVehicleDamageStatus(vehicleid, panels, doors, lights, 5); //Pops the back two wheels
	return 1;
}
Not sure if it works.


Re: Noob to scripting, any idea why this doesn't work? - JonesyFoCoTDM - 29.10.2015

Compiled mate, thank you


Re: Noob to scripting, any idea why this doesn't work? - SkinnyF - 29.10.2015

No Problem.