What Wrong Here why error?
#3

pawn Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
    if(!IsPlayerInAnyVehicle(playerid)) return SendClientMessage(playerid, -1, "You are not in a vehicle!");
    if(GetPlayerState(playerid) != 2) return SendClientMessage(playerid, -1, "You are not in the driver seat!");
    RepairVehicle(GetPlayerVehicleID(playerid));
    SendClientMessage(playerid, -1, "Your vehicle has been sucessfully repaired(fixed)!");
    PlayerPlaySound(playerid, 1133, 0.0, 0.0, 0.0);
    if(GetPlayerState(playerid) != 2) return SendClientMessage(playerid, -1, "You are not in the driver seat!");
    RepairVehicle(GetPlayerVehicleID(playerid));
    return 1;
}//forgot that bracket!
Reply


Messages In This Thread
What Wrong Here why error? - by Tuntun - 28.07.2012, 15:08
Re: What Wrong Here why error? - by Kindred - 28.07.2012, 15:16
Re: What Wrong Here why error? - by BlackWolf120 - 28.07.2012, 15:20

Forum Jump:


Users browsing this thread: 2 Guest(s)