05/11/2022 13:24
(05/11/2022 12:32)Vel Escreveu:Código:enum CARGO {
CARGO_CIVIL,
CARGO_POLICIAL,
CARGO_LADRAO
};
new Cargo[MAX_PLAYERS];
public OnPlayerConnect(playerid) {
Cargo[playerid] = CARGO_CIVIL;
}
SetarCargo(playerid, cargo) {
Cargo[playerid] = cargo;
}
ObterCargo(playerid) {
return Cargo[playerid];
}Código:if (ObterCargo(playerid) != CARGO_POLICIAL) {
return SendClientMessage(playerid, -1, "Não é policial.");
}
esta acontecendo isso:
Código PHP:
warning 213: tag mismatch
error 028: invalid subscript (not an array or too many subscripts): "CARGO_POLICIAL"
warning 215: expression has no effect
error 001: expected token: ";", but found "]"
error 029: invalid expression, assumed zero
fatal error 107: too many error messages on one line