16.06.2014, 12:10
how make stats in Dialog_msgbox? i mean only how to make.... for example title status for player: bijela
and in dialog
Cop rank: %d etc etc...
and in dialog
Cop rank: %d etc etc...
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");
format(string, sizeof(string), "Cop rank: %d\nVip rank: %d", coprank, viprank);
format(title, sizeof(title), "Stats of %s", PlayerLog[playerid][Name]);
ShowPlayerDialog(playerid, 0, DIALOG_STYLE_MSGBOX, title, string, "Button 1", "Button 2");
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"); |
// 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;
}