Multiple errors
#6

Also show me line 360
Try this,
pawn Код:
new Cars[9];

stock YourCallback()
{
    Cars[1] = AddStaticVehicle(599, 2256.3552, 2442.9207, 10.8203, 0.3703, 0, 1);
    Cars[2] = AddStaticVehicle(599, 2273.5859, 2442.5735, 10.8203, 0.6836, 0, 1);
    Cars[3] = AddStaticVehicle(598, 2282.4177, 2442.0291, 10.8203, 0.0569, 0, 1);
    Cars[4] = AddStaticVehicle(598, 282.3342, 2460.3645, 10.8203, 0.3703, 0, 1);
    Cars[5] = AddStaticVehicle(598, 2282.4211, 2477.4626, 10.8203, 180.3703, 0, 1);
    Cars[6] = AddStaticVehicle(598, 2273.5168, 2477.7397, 10.8203, 178.9719, 0, 1);
    Cars[7] = AddStaticVehicle(523, 2256.3137, 2477.9875, 10.8203, 178.6586, 0, 1);
    Cars[8] = AddStaticVehicle(523, 2251.5366, 2478.1582, 10.8203, 180.2253, 0, 1);
    return 1;
}

public OnPlayerStateChange(playerid, newstate, oldstate)
{
    if(newstate == 2)
    {
        new VehCheck = GetPlayerVehicleID(playerid);
        if(VehCheck == Cars[1] || VehCheck == Cars[2] || VehCheck == Cars[3] || VehCheck == Cars[4] || VehCheck == Cars[5] || VehCheck == Cars[6] || VehCheck == Cars[7] || VehCheck == Cars[8])
        {
            if(!PlayerInfo[playerid][Team] = Cops))
            {
                    RemovePlayerFromVehicle(playerid);
                    SendClientMessage(playerid, -1, "You Don't have the keys for this car.");
                    return 1;
            }
            else
            {
                // ?
                return 1;
            }
        }
        return 1;
    }
    return 1;
}
Reply


Messages In This Thread
Multiple errors - by BleverCastard - 22.04.2012, 20:57
Re: Multiple errors - by Kitten - 22.04.2012, 21:07
Re: Multiple errors - by BleverCastard - 22.04.2012, 21:08
Re: Multiple errors - by Kitten - 22.04.2012, 21:11
Re: Multiple errors - by BleverCastard - 22.04.2012, 21:14
Re: Multiple errors - by Kitten - 22.04.2012, 21:22
Re: Multiple errors - by BleverCastard - 22.04.2012, 21:25
Re: Multiple errors - by Kitten - 22.04.2012, 21:25
Re: Multiple errors - by MP2 - 22.04.2012, 21:25
Re: Multiple errors - by BleverCastard - 22.04.2012, 21:28

Forum Jump:


Users browsing this thread: 1 Guest(s)