26.08.2015, 23:07
i Don't Know why the Register date don't Work it was Working But when i added the React and Math he Didn't Worked +rep if u helped me
PHP код:
YCMD:stats(playerid,params[], help)
{
#pragma unused help
#pragma unused params
new string[256], string2[256],str[256];
new TargetID, h, m, s;
new pDeaths;
if(!strlen(params)) TargetID = playerid;
else TargetID = strval(params);
if(Account[TargetID][Deaths] == 0) pDeaths = 1;
else pDeaths = Account[TargetID][Deaths];
TotalGameTime(TargetID, h, m, s);
format(string, sizeof(string),"{22B998}Kills:\t\t\t%d\n",Account[TargetID][Kills]);
strcat(string2,string);
format(string, sizeof(string),"{22B998}Deaths:\t\t\t%d\n",Account[TargetID][Deaths]);
strcat(string2,string);
format(string, sizeof(string),"{22B998}Ratio:\t\t\t%0.2f\n",Float:Account[TargetID][Kills]/Float:pDeaths);
strcat(string2,string);
format(string, sizeof(string),"{22B998}Score:\t\t\t%d\n",GetPlayerScore(TargetID));
strcat(string2,string);
format(string, sizeof(string),"{22B998}Money:\t\t\t%d$\n",GetPlayerMoney(TargetID));
strcat(string2,string);
format(string, sizeof(string),"{22B998}React Wins:\t\t\t%d\n",Account[TargetID][accountReact]);
strcat(string2,string);
format(string, sizeof(string),"{22B998}Math Wins:\t\t\t%d\n",Account[TargetID][accountMath]);
strcat(string2,string);
format(string, sizeof(string),"{22B998}Game Time:\t\t\t%d h,%d m,%d s\n",h,m,s);
strcat(string2,string);
format(string, sizeof(string),"{22B998}Donator:\t\t%d\n",Account[TargetID][VipLevel]);
strcat(string2,string);
format(string, sizeof(string),"{22B998}Admin Level:\t\t%d\n",Account[TargetID][Level]);
strcat(string2,string);
format(string, sizeof(string),"{22B998}Registered Date:\t%s\n",Account[TargetID][RegisteredDate]);
strcat(string2,string);
format(str,sizeof(str),"{FF4444}-=-Stats from %s",GetName(TargetID));
return ShowPlayerDialog(playerid, 2002, DIALOG_STYLE_MSGBOX, str, string2, "OK","");
}