Invalid function or declaration
#3

PHP Code:
public OnPlayerEnterVehicle(playerid5980
You must provide the parameter names:
PHP Code:
OnPlayerEnterVehicle(playeridvehicleidispassenger
Then you use the values in your code inside the callback's body:
PHP Code:
OnPlayerEnterVehicle(playeridvehicleidispassenger)

    if(
GetVehicleModel(vehicleid) == 598 && !ispassenger)
    {
        
SetPlayerWantedLevel(playerid6); 
        
SendClientMessage(playeridRED"Law enforcement vehicle theft [WANTED LEVEL INCREASED]"); 
        return 
1
    }

Reply


Messages In This Thread
Invalid function or declaration - by Cyboorg - 05.06.2017, 17:41
Re: Invalid function or declaration - by Vince - 05.06.2017, 17:44
Re: Invalid function or declaration - by renatog - 05.06.2017, 17:46
Re: Invalid function or declaration - by Cyboorg - 05.06.2017, 17:47
Re: Invalid function or declaration - by Cyboorg - 05.06.2017, 17:51
Re: Invalid function or declaration - by Cyboorg - 06.06.2017, 19:16

Forum Jump:


Users browsing this thread: 1 Guest(s)