engine 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: engine problem? (
/showthread.php?tid=309400)
engine problem? -
Tanush123 - 07.01.2012
i got some errors for some reason
Код:
D:\Users\Tanush\Desktop\SA-MP SERVERS\SA-MP Server Stunt\gamemodes\server.pwn(3898) : error 035: argument type mismatch (argument 2)
D:\Users\Tanush\Desktop\SA-MP SERVERS\SA-MP Server Stunt\gamemodes\server.pwn(3903) : error 017: undefined symbol "lights"
D:\Users\Tanush\Desktop\SA-MP SERVERS\SA-MP Server Stunt\gamemodes\server.pwn(3909) : error 017: undefined symbol "lights"
3898:
pawn Код:
GetVehicleParamsEx(vid, engine, lights, alarm, doors, boonet, boot, objective);
3903:
pawn Код:
SetVehicleParamsEx(vid,true,lights,alarm,doors,boonet,boot,objective);
3909:
pawn Код:
SetVehicleParamsEx(vid,false,lights,alarm,doors,boonet,boot,objective);
i have 0.3d
Re: engine problem? -
Konstantinos - 07.01.2012
pawn Код:
new engine, lights, alarm, doors, bonnet, boot, objective, vid = GetPlayerVehicleID(playerid);
GetVehicleParamsEx(vid, engine, lights, alarm, doors, bonnet, boot, objective);
SetVehicleParamsEx(vid, 0, lights, alarm, doors, bonnet, boot, objective);
Re: engine problem? -
Tanush123 - 07.01.2012
oh wow how i forgot that, thanks.. repped for fast response
Re: engine problem? -
Konstantinos - 07.01.2012
Thanks Tanush123 and your welcome!