01.08.2015, 16:26
so ive been trying to fix a problem with my /stats command or somewhere within my login/register system...
this is the code for the cmd
but it returns 0 for all the stats in game, even if i have amounts in each
this is the code for the cmd
Код:
CMD:stats(playerid, params[]) { new string[40]; new kills = PlayerInfo[playerid][pKills]; new deaths = PlayerInfo[playerid][pDeaths]; new exp = PlayerInfo[playerid][pExp]; format(string, sizeof(string), "† Kills: %d † Deaths: %d † Experience: %d †", kills, deaths, exp); SendClientMessage(playerid, COLOR_GREEN, string); return 1; }