What's wrong with this code?
#1

Ok, what's wrong with this code?
PHP код:
public OnPlayerStateChange(playeridnewstateoldstate)
{
    new 
vehicleid GetVehicleModel(vehicleid);
    if(
vehicleid) == 487)
    {
        if(
isPilot[playerid] == 1)
        {
            if(
newstate == 2)
            {
                
PutPlayerInVehicle(playeridvehicleid0);
            }
        else
        {
            
SendClientMessage(playeridCOLOR_RED"You must be the Pilot class to fly helicopters.");
            
RemovePlayerFromVehicle(playerid);
        }
    }
    return 
1;

Reply


Messages In This Thread
What's wrong with this code? - by NoahF - 10.05.2014, 10:57
Re: What's wrong with this code? - by Matess - 10.05.2014, 11:01
Re: What's wrong with this code? - by NoahF - 10.05.2014, 11:05
Re: What's wrong with this code? - by Konstantinos - 10.05.2014, 11:10
Re: What's wrong with this code? - by NoahF - 10.05.2014, 11:12

Forum Jump:


Users browsing this thread: 1 Guest(s)