ShowPlayerDialog help
#7

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

PHP код:
        format(stringsizeof(string), "{FF6666}Player stats for %s\nGeneral Stats\nMoney: $%d\nScore: %d\n"PlayerNameGetPlayerCash(playerid), GetPlayerScore(playerid));
        
ShowPlayerDialog(playeridSTATS_DIALOGDIALOG_STYLE_MSGBOXstring"Okay",""); 
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:

PHP код:
        format(stringsizeof(string), "General Stats\nMoney: $%d\nScore: %d\n"GetPlayerCash(playerid), GetPlayerScore(playerid));
        
ShowPlayerDialog(playeridSTATS_DIALOGDIALOG_STYLE_MSGBOX"{FF6666}Player Stats for %s"string"Okay",""); 
Reply


Messages In This Thread
ShowPlayerDialog help - by tommzy09 - 26.05.2015, 01:06
Re: ShowPlayerDialog help - by LMaxCo - 26.05.2015, 01:41
Re: ShowPlayerDialog help - by LMaxCo - 26.05.2015, 01:45
Re: ShowPlayerDialog help - by tommzy09 - 26.05.2015, 02:09
Re: ShowPlayerDialog help - by Trucido - 26.05.2015, 02:14
Re: ShowPlayerDialog help - by LMaxCo - 26.05.2015, 02:16
Re: ShowPlayerDialog help - by tommzy09 - 26.05.2015, 02:17
Re: ShowPlayerDialog help - by Trucido - 26.05.2015, 02:33
Re: ShowPlayerDialog help - by tommzy09 - 26.05.2015, 02:41

Forum Jump:


Users browsing this thread: 1 Guest(s)