07.12.2013, 16:01
Galera, comecei a fazer um FS com enum:
e da esse erro:
pawn Код:
enum pDados
{
new pNivelAdm:int,
new pTrabalho:bool,
new pDinheiro:int,
new pPontos:int
}
new
ArrayDados[MAX_PLAYERS][pDados];
public OnPlayerConnect(playerid)
{
if(ArrayDados[playerid][pNivelAdm] > 0)
{
new name, string[128];
GetPlayerName(playerid, name, sizeof(name));
format(string, sizeof(string), "O Admin %s acabou de se conectar!!!", name);
SendClientMessageToAll(COR_AZUL, string);
}
return 1;
}
pawn Код:
C:\Users\Usuario\Desktop\Brasil Estrada Virtual\filterscripts\SistemAdm.pwn(56) : error 017: undefined symbol "ArrayDados"
C:\Users\Usuario\Desktop\Brasil Estrada Virtual\filterscripts\SistemAdm.pwn(56) : warning 215: expression has no effect
C:\Users\Usuario\Desktop\Brasil Estrada Virtual\filterscripts\SistemAdm.pwn(56) : error 001: expected token: ";", but found "]"
C:\Users\Usuario\Desktop\Brasil Estrada Virtual\filterscripts\SistemAdm.pwn(56) : error 029: invalid expression, assumed zero
C:\Users\Usuario\Desktop\Brasil Estrada Virtual\filterscripts\SistemAdm.pwn(56) : 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.