SA-MP Forums Archive
car control error =l - 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)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: car control error =l (/showthread.php?tid=272311)



car control error =l - slymatt - 27.07.2011

why does the scrip say:

Код:
C:\Users\mattt\Desktop\ARRP\gamemodes\arrp.pwn(727) : error 017: undefined symbol "lights"
C:\Users\mattt\Desktop\ARRP\gamemodes\arrp.pwn(728) : error 017: undefined symbol "lights"
For this :

Код:
GetVehicleParamsEx(vid, engine, lights, alarm, doors, bonnet, boot, objective);
SetVehicleParamsEx(vid, engine, lights, alarm, doors, bonnet, boot, objective);
i dont get it =(


Re: car control error =l - Calgon - 27.07.2011

You need to create a integer with the name of 'lights', you can do so with the following code:

pawn Код:
// Place this code above the functions you pasted
new lights;
You get the 'undefined symbol' error because it couldn't find a variable with the name of 'lights' in the scope of where your functions were being used.


Re: car control error =l - slymatt - 27.07.2011

Alright cheers