04.05.2018, 19:27
Estou tendo um problema com o comando /admins, simplesmente mostra 1 administrador, nгo aparece os demais !
PHP Code:
CMD:admins(playerid, params[])
{
new count = 0;
{
if(jInfo[playerid][Logado] == true)
{
for (new i = 0; i < MAX_PLAYERS; i++)
{
if(IsPlayerConnected(i))
{
if(jInfo[i][Cargo] > 0)
{
new StrAdmins[1000];
new Str1[128];
format(Str, sizeof(Str), "{FFFFFF}Administrador Online no Momento !\n");
format(Str1, sizeof(Str1), "{FFFFFF}[ %s {FFFFFF}] {FF8000}%s (%d) {FFFFFF}estб {00FF00}Online\n", LevelAdmin[jInfo[i][Cargo]], jNome(i), i);
strcat(StrAdmins, Str, 1000);
strcat(StrAdmins, Str1, 1000);
ShowPlayerDialog(playerid, DAdminsOnline, DIALOG_STYLE_MSGBOX, "{FFA500}Administradores", StrAdmins, "Fechar", "");
count++;
}
}
}
}
if(count == 0)
{
format(Str, sizeof(Str), "{FF0000}Nenhum administrador Online no momento !");
ShowPlayerDialog(playerid, DAdminsOnline, DIALOG_STYLE_MSGBOX, "{FFA500}Administradores", Str, "Fechar", "");
}
}
return 1;
}
Screenshoot
https://prnt.sc/jdtaac