26.05.2015, 02:17
i see what you mean, how would i go about showing them all the stats i listed without making multiple dialogs?
edit:
this was my attempt
but i get the error: "warning 202: number of arguments does not match definition"
edit 2: okay after some trial and error, i got it mostly working, just 1 more problem
how do i get that %s to show the players name?
here's my code:
edit:
this was my attempt
PHP код:
format(string, sizeof(string), "{FF6666}Player stats for %s\nGeneral Stats\nMoney: $%d\nScore: %d\n", PlayerName, GetPlayerCash(playerid), GetPlayerScore(playerid));
ShowPlayerDialog(playerid, STATS_DIALOG, DIALOG_STYLE_MSGBOX, string, "Okay","");
edit 2: okay after some trial and error, i got it mostly working, just 1 more problem
how do i get that %s to show the players name?
here's my code:
PHP код:
format(string, sizeof(string), "General Stats\nMoney: $%d\nScore: %d\n", GetPlayerCash(playerid), GetPlayerScore(playerid));
ShowPlayerDialog(playerid, STATS_DIALOG, DIALOG_STYLE_MSGBOX, "{FF6666}Player Stats for %s", string, "Okay","");