13.02.2017, 16:56
For that, you might try this; but your format looks weird, check if your stats are correct for character
Код:
CMD:stats(playerid,params[]) { if(IsPlayerConnected(playerid)) { PlayerInfo[playerid][pCash] = GetPlayerMoney(playerid) PlayerInfo[playerid][pLevel] = GetPlayerScore(playerid) new Cash = PlayerInfo[playerid][pCash]; new Admin = PlayerInfo[playerid][pAdmin]; new Kills = PlayerInfo[playerid][pKills]; new Deaths = PlayerInfo[playerid][pDeaths]; new Level = PlayerInfo[playerid][pLevel]; new string1[128],stats[1024]; format(string1, sizeof string1, "Bani: $%d | Crime: %i | Decesuri: %i | Admin: %i | Level: %i", Cash,Admin,Kills,Deaths,Level); format(stats, sizeof stats, "%s", string1); SCM(playerid,-1,string1); } return 1; }