Noob to scripting, any idea why this doesn't work?
#1

Код:
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.
Reply
#2

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.
Reply
#3

Compiled mate, thank you
Reply
#4

No Problem.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)