21.12.2013, 08:50
it's not that complicated,
i coded that 6 months ago you can take it as an example:
before that, you have to store all the information, like score, in an enum ofc.
i coded that 6 months ago you can take it as an example:
PHP код:
YCMD:stats(playerid, params[], help)
{
if(help) return SendClientMessage(playerid, gray, "/stats Is used to Displays your Statistics.");
new s[150];
format(s,sizeof s,"Name: %s\nScore: %d\nMoney: %d$\nBank-Money: %d\nWanted-Level: %d\nAdmin-Level: %d\nRegDate: %s",
GetName(playerid),
Pi[playerid][pScore],
Pi[playerid][pMoney],
Pi[playerid][pBank],
Pi[playerid][pWanted],
Pi[playerid][pAdminLevel],
Pi[playerid][pRegDate]);
ShowDialog(playerid, Show:Stats, DIALOG_STYLE_MSGBOX,"Your Stats",s,"Ok","");
return 1;
}