Dialog_msgbox
#9

Quote:
Originally Posted by bijela
Посмотреть сообщение
Can you make one example please broo? just one with dialog_msg and tittle? please

for example:

Stats of %s

and in dialog

Roblevel etc please? CAn you do it i try sometghing like this but don't work

format(string, sizeof(string), "Cop rank: %d\nVip rank: %d", coprank, viprank);
ShowPlayerDialog(playerid, 0, DIALOG_STYLE_MSGBOX, "Title", string, "Button1", "Button2");
format(title, 60, "Stats of %s", PlayerLog[playerid][Name]);
ShowPlayerDialog(playerid, 0, 0, title, string, "Button 1", "Button 2");
If you don't know the basics of strings then how will you make a server?

pawn Код:
// Using ZCMD

CMD:stats(playerid, params[])
{
    new name[MAX_PLAYER_NAME+1], string[64];
    GetPlayerName(playerid, name, sizeof(name));
    format(string, sizeof(string), "Username: %s", name);
    ShowPlayerDialog(playerid, 1, DIALOG_STYLE_MSGBOX, "User Statistics", string, "Close", "");
    return 1;
}
Reply


Messages In This Thread
Dialog_msgbox - by bijela - 16.06.2014, 12:10
Re: Dialog_msgbox - by ]Rafaellos[ - 16.06.2014, 12:20
Re: Dialog_msgbox - by bijela - 16.06.2014, 12:42
Re: Dialog_msgbox - by ]Rafaellos[ - 16.06.2014, 12:44
Re: Dialog_msgbox - by bijela - 16.06.2014, 12:51
Re: Dialog_msgbox - by Zex Tan - 16.06.2014, 13:00
Re: Dialog_msgbox - by bijela - 17.06.2014, 13:56
Re: Dialog_msgbox - by Konstantinos - 17.06.2014, 13:59
Re: Dialog_msgbox - by Swyft™ - 17.06.2014, 14:02
Re: Dialog_msgbox - by Clad - 17.06.2014, 14:23

Forum Jump:


Users browsing this thread: 2 Guest(s)