format(string, sizeof(string),"{FF0000}General Statistics\n\n{00FFFF}Player Name:{00FF00} %s\n{00FFFF}Score:{00FF00} %i\n{00FFFF}Money :{00FF00} %i\n{00FFFF}Skin:{00FF00} %i\n{00FFFF}Wanted level:{00FF00} %i\n{00FFFF}Ping:{00FF00} %i\n\n{FF0000}Record Statistics\n\n{00FFFF}Kills:{00FF00} %i\n{00FFFF}Deaths:{00FF00} %i\n{00FFFF}K/D ratio:{00FF00} %i\n{00FFFF}Players robbed:{00FF00} %i\n{00FFFF}Stores robbed:{00FF00} %i\n{00FFFF}Players Raped:{00FF00} %i" ,name,GetPlayerScore(playerid),GetPlayerMoney(playerid),GetPlayerSkin(playerid),GetPlayerWantedLevel(playerid),GetPlayerPing(playerid),playerData[playerid][playerKills],playerData[playerid][playerDeaths],ratio,playerData[playerid][playerRobberies],playerData[playerid][streetRobberies],playerData[playerid][streetRapes]);
ShowPlayerDialog(playerid,123,DIALOG_STYLE_MSGBOX,"{FFFF00} Statistics",string,"Close", "");
new str[128], totalstr[128];
format(str, sizeof(str),"Cash : %d",GetPlayerMoney(playerid));
strcat(totalstr, str);
ShowPlayerDialog(playerid,1232,DIALOG_STYLE_MSGBOX,"Your Stats",totalstr,"OK","");
An example :
PHP код:
|
format(str, sizeof(str),"Cash : %d",GetPlayerMoney(playerid));
strcat(totalstr, str);
new str[128], totalstr[128];
format(str, sizeof(str),"Cash : %d",GetPlayerMoney(playerid));
strcat(totalstr, str);
format(str, sizeof(str),"Scores : %d",GetPlayerScore(playerid));
strcat(totalstr, str);
ShowPlayerDialog(playerid,1232,DIALOG_STYLE_MSGBOX,"Your Stats",totalstr,"OK","");