[HELP] Command /admins in dialog
#1

detele...
Reply
#2

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.
Reply
#3

detele...
Reply
#4

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.
Reply
#5

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.
Reply
#6

delete...
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)