17.06.2014, 14:02
Quote:
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"); |
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;
}