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