Pawno Compiler Not Working
#10

Quote:
Originally Posted by sjvt
Посмотреть сообщение
the problem is

pawn Код:
dcmd_restoreme(playerid)
{
    if(IsPlayerVipType(playerid,3))
    {
        SendClientMessage(playerid, 0x32CD32FF, "Your Health, Armour, and Vehicle Health has been Restored");
        SetPlayerHealth(playerid, 100);
        SetPlayerArmour(playerid, 100.0);
        if(!IsPlayerInAnyVehicle(playerid)) return SendClientMessage(playerid, COLOR_RED, "You are not in a vehicle, so your vehicle health is not restored. But your health and armour is.");
        RepairVehicle(GetPlayerVehicleID(playerid));
        {
            else SendClientMessage(playerid, COLOR_RED, "ERROR: You do not have enough rights to execute this command");
    return 1;
}

Fix:

pawn Код:
dcmd_restoreme(playerid)
{
    if(IsPlayerVipType(playerid,3))
    {
        SendClientMessage(playerid, 0x32CD32FF, "Your Health, Armour, and Vehicle Health has been Restored");
        SetPlayerHealth(playerid, 100);
        SetPlayerArmour(playerid, 100.0);
        if(!IsPlayerInAnyVehicle(playerid)) return SendClientMessage(playerid, COLOR_RED, "You are not in a vehicle, so your vehicle health is not restored. But your health and armour is.");
        RepairVehicle(GetPlayerVehicleID(playerid));
    }
    else SendClientMessage(playerid, COLOR_RED, "ERROR: You do not have enough rights to execute this command");
    return 1;
}
The } after repairvehicle is the thing that is causing the compiler to crash, so that wont work
Reply


Messages In This Thread
Pawno Compiler Not Working - by stormchaser206 - 15.03.2012, 21:55
Re: Pawno Compiler Not Working - by Krx17 - 15.03.2012, 21:56
Re: Pawno Compiler Not Working - by stormchaser206 - 16.03.2012, 18:58
Re: Pawno Compiler Not Working - by stormchaser206 - 16.03.2012, 19:13
Re: Pawno Compiler Not Working - by T0pAz - 16.03.2012, 19:16
Re: Pawno Compiler Not Working - by stormchaser206 - 16.03.2012, 19:20
Re: Pawno Compiler Not Working - by T0pAz - 16.03.2012, 19:24
Re: Pawno Compiler Not Working - by stormchaser206 - 16.03.2012, 19:29
Re: Pawno Compiler Not Working - by sjvt - 16.03.2012, 20:13
Re: Pawno Compiler Not Working - by stormchaser206 - 16.03.2012, 20:57

Forum Jump:


Users browsing this thread: 4 Guest(s)