[Ajuda] Bug /Admins - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: Non-English (
https://sampforum.blast.hk/forumdisplay.php?fid=9)
+--- Forum: Languages (
https://sampforum.blast.hk/forumdisplay.php?fid=33)
+---- Forum: Português/Portuguese (
https://sampforum.blast.hk/forumdisplay.php?fid=34)
+---- Thread: [Ajuda] Bug /Admins (
/showthread.php?tid=649229)
Bug /Admins -
GuiKommander - 05.02.2018
Tou colocando em dialog.. ta certinho, sу que nгo pula a linha, mostra os admins certinho que jб testei, Mais fica na mesma Linha da Dialog Style List.
PHP код:
CMD:admins(playerid,params[])
{
new stg[128],Formatar[128];
for(new i; i < MAX_PLAYERS; i++)
{
if(pInfo[i][Cargo] == GERENTE)
{
new name[24];
GetPlayerName(i, name, sizeof(name));
format(Formatar, sizeof(Formatar), "Admin %s[%d] Online!", name, i);
strcat(stg, Formatar);
ShowPlayerDialog(playerid, ADMINS, DIALOG_STYLE_LIST, "{FF00FF}Admins ONLINE!", stg, "Sair", "");
}
}
return 1;
}
Re: Bug /Admins -
testi_man - 05.02.2018
Код:
CMD:admins(playerid,params[])
{
new stg[128],Formatar[128];
for(new i; i < MAX_PLAYERS; i++)
{
if(pInfo[i][Cargo] == GERENTE)
{
new name[24];
GetPlayerName(i, name, sizeof(name));
format(Formatar, sizeof(Formatar), "Admin %s[%d] Online!\n", name, i);
strcat(stg, Formatar);
ShowPlayerDialog(playerid, ADMINS, DIALOG_STYLE_LIST, "{FF00FF}Admins ONLINE!", stg, "Sair", "");
}
}
return 1;
}