11.06.2012, 00:55
pawn Код:
CMD:admins(playerid, params[])
{
new IsAdmin;
SendClientMessage(playerid, Rosa, "Admin Online:");
new Online[10];
for(new i = 0; i < MAX_PLAYERS; i++)
{
{
if(pInfo[i][pAdmin] == 1) AdminNivel = "Moderador";//aqui dis que e o error
if(pInfo[i][pAdmin] == 2) AdminNivel = "Admin Iniciante";
if(pInfo[i][pAdmin] == 3) AdminNivel = "Admin Geral";
if(pInfo[i][pAdmin] == 4) AdminNivel = "Sub Dono";
if(pInfo[i][pAdmin] == 5) AdminNivel = "Poderoso Chefгo";
format(String, sizeof(String), "%s | %s | %s | %s", Nome(i), AdminNivel, AdminTrabalhando, Online);
SendClientMessage(playerid, LARANJA, String);
IsAdmin ++;
}
}
if(IsAdmin == 0)
{
SendClientMessage(playerid, CINZA, "Nenhum Admin Online!");
}
IsAdmin = 0;
SendClientMessage(playerid, CINZA, "Use /helpers");
return 1;
}
pawn Код:
D:\GM\gamemodes\GM.pwn(2827) : error 028: invalid subscript (not an array or too many subscripts): "pInfo"
D:\GM\gamemodes\GM.pwn(2827) : warning 215: expression has no effect
D:\GM\gamemodes\GM.pwn(2827) : error 001: expected token: ";", but found "]"
D:\GM\gamemodes\GM.pwn(2827) : error 029: invalid expression, assumed zero
D:\GM\gamemodes\GM.pwn(2827) : 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.