MySQL /stats command
#2

it's not that complicated,
i coded that 6 months ago you can take it as an example:

PHP код:
YCMD:stats(playeridparams[], help)
{
    if(
help) return SendClientMessage(playeridgray"/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(playeridShow:StatsDIALOG_STYLE_MSGBOX,"Your Stats",s,"Ok","");
    return 
1;

before that, you have to store all the information, like score, in an enum ofc.
Reply


Messages In This Thread
MySQL /stats command - by ZBits - 21.12.2013, 08:40
Re: MySQL /stats command - by CutX - 21.12.2013, 08:50
Re: MySQL /stats command - by ZBits - 21.12.2013, 23:02

Forum Jump:


Users browsing this thread: 1 Guest(s)