if(Profissao[playerid] == Mecanico return SendClientMessage(playerid, Laranja, "| ERRO | Vocк nгo tem permissao");
CMD:consertar(playerid, params[])
{
if(Profissao[playerid] == Mecanico) return SendClientMessage(playerid, Laranja,"| ERRO | Vocк nгo tem permissгo.");
if(!IsPlayerInAnyVehicle(playerid)) return SendClientMessage(playerid, Laranja, "| ERRO | Vocк nгo estб em um veнculo.");
new vehicleid = GetPlayerVehicleID(playerid);
SetVehicleHealth(vehicleid, 1000);
return 1;
}
if(Mecanico[playerid] == 0) return SendClientMessage(playerid, Laranja,"| ERRO | Vocк nгo tem permissгo.");
C:\Users\user\Desktop\GM [PROJETO]\gamemodes\GM.pwn(627) : error 029: invalid expression, assumed zero
C:\Users\user\Desktop\GM [PROJETO]\gamemodes\GM.pwn(627) : error 029: invalid expression, assumed zero
C:\Users\user\Desktop\GM [PROJETO]\gamemodes\GM.pwn(627) : warning 215: expression has no effect
C:\Users\user\Desktop\GM [PROJETO]\gamemodes\GM.pwn(627) : error 001: expected token: ";", but found "]"
C:\Users\user\Desktop\GM [PROJETO]\gamemodes\GM.pwn(627) : fatal error 107: too many error messages on one line
Compilation aborted.Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
4 Errors.
if(Profissao[playerid][Mecanico] == 0) return SendClientMessage(playerid, Laranja,"| ERRO | Vocк nгo tem permissгo.");
CMD:consertar(playerid, params[])
{
if(!Profissao[playerid] == Mecanico) return SendClientMessage(playerid, Laranja,"| ERRO | Vocк nгo tem permissгo.");
if(!IsPlayerInAnyVehicle(playerid)) return SendClientMessage(playerid, Laranja, "| ERRO | Vocк nгo estб em um veнculo.");
new vehicleid = GetPlayerVehicleID(playerid);
SetVehicleHealth(vehicleid, 1000);
return 1;
}
pawn Код:
|
C:\Users\user\Desktop\GM [PROJETO]\gamemodes\GM.pwn(633) : warning 213: tag mismatch
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
1 Warning.
CMD:reparar(playerid, params[])
{
if(Profissao[playerid] == Mecanico)
{
new vehicleid = GetPlayerVehicleID(playerid);
SetVehicleHealth(vehicleid, 1000);
return true;
}
else
{
SendClientMessage(playerid, -1, " nгo йs mecanico");
}
return 1;
}