[HELP] Command /admins in dialog - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: [HELP] Command /admins in dialog (
/showthread.php?tid=562366)
[HELP] Command /admins in dialog -
pitchooo - 08.02.2015
detele...
Re: [HELP] Command /admins in dialog -
Sascha - 08.02.2015
use a string and extend it each time in the loop through the players like
pawn Код:
format(string, sizeof(string), "%s\n%s", string, playername);
Then use that string as text in the dialog
If you want information related to your code, you should post your current /admins command.
Re: [HELP] Command /admins in dialog -
pitchooo - 08.02.2015
detele...
Re: [HELP] Command /admins in dialog -
CalvinC - 08.02.2015
Use
ShowPlayerDialog to show the player a dialog, use
strcat to lengthen a string.
Etc:
pawn Код:
new string[15];
format(string, sizeof(string), "Admin 1");
strcat(string, "\nAdmin 2");
ShowPlayerDialog(playerid, DialogID, DIALOG_STYLE_MSGBOX, "Online Admins", string, "Close", "");
And change "DialogID" to your dialog ID ofcourse.
Re: [HELP] Command /admins in dialog -
Knappen - 08.02.2015
Take a look at this.
https://sampwiki.blast.hk/wiki/Strins
PHP код:
new String[15];
strins(String, "Knappen\n", 0);
print(String);
Create a loop and go through your admins and show a dialog afterwards.
Re: [HELP] Command /admins in dialog -
pitchooo - 12.02.2015
delete...