SA-MP Forums Archive
[HELP] IsABike - 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] IsABike (/showthread.php?tid=566021)



[HELP] IsABike - monster010 - 02.03.2015

I put this script on my gamemode at callback OnPlayerStateChange

pawn Код:
GetVehicleParamsEx(newcar,engine,lights,alarm,doors,bonnet,boot,objective);
    if(IsABike(newcar))
    {
        SetVehicleParamsEx(newcar,VEHICLE_PARAMS_ON,lights,alarm,doors,bonnet,boot,objective);
    }
And give me these errors. Why?

Код:
error 017: undefined symbol "newcar"
error 017: undefined symbol "newcar"
error 017: undefined symbol "newcar"
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


3 Errors.



Re: [HELP] IsABike - 1fret - 02.03.2015

You need to define newcar.

Check this link to see how to use setvehicleparamex
https://sampwiki.blast.hk/wiki/SetVehicleParamsEx

How to use getvehicleparamex
https://sampwiki.blast.hk/wiki/GetVehicleParamsEx