[HELP] IsABike
#1

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

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
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)