[Ajuda] /Admins em DIALOG - 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] /Admins em DIALOG (
/showthread.php?tid=488008)
/Admins em DIALOG -
RoLiK - 16.01.2014
ola galera sou novo nessas coisas de Pawno, mas estou aprofundando bem nesse assunto, e daki algum tempo conseguirei fazer tudo sozinho, mas isso nгo vem ao caso, MEU PROBLEMA й o seguinte, eu estava tentando colocar o comando /admins para ver os admins em dialog, eu achava que era facil, achava que era so colocar no finar o ShowPlayerDialog no lugar do SendClientMenssages (acho que й assim), mas eu estava enganado,
alguem ae pode me ajudar, lanзando aqui um sf ou ate mesmo o codigo ja feito do /admins em Dialog? se possivel um bem bacaninha xD
VLW
Re: /Admins em DIALOG -
iDreak - 16.01.2014
Acabei de fazer e nгo testei, Adapta ele em seu GM e teste:
pawn Код:
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;
}
Respuesta: /Admins em DIALOG -
RoLiK - 16.01.2014
ta dando isso aki mano
Quote:
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.
|
Re: /Admins em DIALOG -
DannielCooper - 16.01.2014
pawn Код:
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;
}