CMD:admins(playerid) {
new String[120], String2[120], NomePlayer[20];
for(new i; i < MAX_PLAYERS; i++) {
if(PlayerInfo[i][pAdmin] > 0) {
if(IsPlayerConnected(i)) {
GetPlayerName(i, NomePlayer, 20);
format(String, 120, "Admin: %s estб Online", NomePlayer); strcat(String2, String);
}
}
}
ShowPlayerDialog(playerid, 80, DIALOG_STYLE_MSGBOX, "Admins", String2, "Fechar", #);
return true;
}
C:\Users\user\Desktop\SERVER\btg\btg\gamemodes\BTG .pwn(7544) : error 017: undefined symbol "admins" C:\Users\user\Desktop\SERVER\btg\btg\gamemodes\BTG .pwn(7547) : error 033: array must be indexed (variable "pAdmin") C:\Users\user\Desktop\SERVER\btg\btg\gamemodes\BTG .pwn(755 : warning 225: unreachable code C:\Users\user\Desktop\SERVER\btg\btg\gamemodes\BTG .pwn(7544) : warning 203: symbol is never used: "CMD" Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 2 Errors. |
CMD:admins(playerid) {
new String[120], String2[120], NomePlayer[20];
for(new i; i < MAX_PLAYERS; i++) {
if(PlayerInfo[i][pAdmin] > 0) {
if(IsPlayerConnected(i)) {
GetPlayerName(i, NomePlayer, 20);
format(String, 120, "Admin: %s estб Online", NomePlayer); strcat(String2, String);
strcat(string, string2);
ShowPlayerDialog(playerid, 80, DIALOG_STYLE_MSGBOX, "Admins", String2, "Fechar", #);
}
}
}
return true;
}