SA-MP Forums Archive
help please - 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: help please (/showthread.php?tid=281013)



help please - greekg@ng$st3r - 03.09.2011

{
new vid = GetPlayerVehicleID(playerid);
SetVehicleParamsEx(vid,VEHICLE_PARAMS_OFF,lights,a larm,doors,bonnet,boot,objective);
SendClientMessage(playerid, 0xFF00CC, "Use /ste to start the vehicle engine.");
return 1;
}

: error 017: undefined symbol "lights"
:/


Re: help please - elcid7772 - 03.09.2011

You didn't define "lights". Nor did you define alarm, doors, bonnet, boot, or objective.

Just put: new lights, alarm, doors, bonnet, boot, objective;


Re: help please - =WoR=G4M3Ov3r - 03.09.2011

Why do you people just Copy something from another script, and paste it in yours, I'm afraid there's something called Defines and Variables, which the script you're stripping from it has, and yours doesn't.


Re: help please - Amel_PAtomAXx - 03.09.2011

pawn Код:
new vid,engine,lights,alarm,doors,bonnet,boot,objective;
vid = GetPlayerVehicleID(playerid);
GetVehicleParamsEx(vid,engine,lights,alarm,doors,bonnet,boot,objective);
SetVehicleParamsEx(vid,VEHICLE_PARAMS_OFF,lights,alarm,doors,bonnet,boot,objective);
SendClientMessage(playerid, 0xFF00CC, "Use /ste to start the vehicle engine.");



Re: help please - greekg@ng$st3r - 03.09.2011

guyz im beginner...


Re: help please - greekg@ng$st3r - 03.09.2011

warning 217: loose indentation
at this line
new vid = GetPlayerVehicleID(playerid);


Re: help please - greekg@ng$st3r - 03.09.2011

lol i found it was a lil bit right from the other lines...anyways thanks...xD