15.12.2012, 21:33
bom eu peguei o registro JFS REGISTRO й ja ta salvando o admin ai eu so criei a enum й coloquei o /admins й deu esses erros
Codigo:
pawn Код:
C:\Documents and Settings\Administrador\Meus documentos\Equipe FB\filterscripts\dodocerto.pwn(270) : error 017: undefined symbol "PlayerInfo"
C:\Documents and Settings\Administrador\Meus documentos\Equipe FB\filterscripts\dodocerto.pwn(270) : warning 215: expression has no effect
C:\Documents and Settings\Administrador\Meus documentos\Equipe FB\filterscripts\dodocerto.pwn(270) : error 001: expected token: ";", but found "]"
C:\Documents and Settings\Administrador\Meus documentos\Equipe FB\filterscripts\dodocerto.pwn(270) : error 029: invalid expression, assumed zero
C:\Documents and Settings\Administrador\Meus documentos\Equipe FB\filterscripts\dodocerto.pwn(270) : 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.
pawn Код:
if(!strcmp(cmdtext, "/admins", true))
{
new zstring[128], admtext[15], pname[MAX_PLAYERS], count;
GetPlayerName(playerid, pname, MAX_PLAYERS);
format(zstring, sizeof(zstring), "[Comando] %s digitou /admins!", pname);
print(zstring);
SendClientMessage(playerid, COR_AZULCLARO, "** Todos os adminstradores online:");
for(new i, j = GetMaxPlayers(); i !=j; i++)
{
if(IsPlayerConnected(i))
{
if(Logado[i] == 1)
{
if(PlayerInfo[i][pAdmin] >= 1) // LINHA 270
{
if(PlayerInfo[i][pAdmin] == 5) admtext = "Game Master";
if(PlayerInfo[i][pAdmin] == 4) admtext = "Sub Game Master";
if(PlayerInfo[i][pAdmin] == 3) admtext = "Administrador Hierarquia";
if(PlayerInfo[i][pAdmin] == 2) admtext = "Administrador Fixo";
if(PlayerInfo[i][pAdmin] == 1) admtext = "Administrador Temporario";
new str[120];
GetPlayerName(i, pname, 24);
format(str, 256, "%s [Level %s] ", pname, admtext);
SendClientMessage(playerid, 0xE3E3E3FF, str);
count++;
}
}
}
}
if(count == 0) SendClientMessage(playerid, 0xD8D8D8FF, "Nгo tem nenhum admin on-line agora!");
return 1;
}