26.07.2011, 12:34
i have this now
but Stats[3] = Factionname[24]; still shows as 0 when i type /stats although in my file it is set to 1 and should show LSPD =S
Код:
new Stats[6], string[150]; Stats[0] = PlayerInfo[playerid][Cash]; Stats[1] = PlayerInfo[playerid][Kills]; Stats[2] = PlayerInfo[playerid][Deaths]; Stats[3] = Factionname[24]; Stats[4] = PlayerInfo[playerid][Factionrank]; Stats[5] = PlayerInfo[playerid][Bankdeposit]; format(string, sizeof(string), "Account: Cash: %d || Kills: %d || Deaths: %d || Faction: %d || Faction Rank: %d || Bank Balance: %d", Stats[0], Stats[1], Stats[2], Stats[3], Stats[4], Stats[5]); SendClientMessage(playerid, COLOUR_YELLOW, string);