Adding Colors in Stats
#6

pawn Код:
format(string, sizeof(string), "Stats for %s (ID: %d):", PlayerName(targetid), targetid);
        SendClientMessage(playerid, WHITE, string);
       
            format(string, sizeof(string)"{HEXCODES}Level: {FFFFFF}%d | {HEXCODES}Gender: {FFFFFF}%s | {HEXCODES}Age: {FFFFFF}%d | {HEXCODES}Origin: {FFFFFF}%s | {HEXCODES}Cash: {FFFFFF}$%s | {HEXCODES}Bank: {FFFFFF}$%s | {HEXCODES}Phone Number: {FFFFFF}%d | {HEXCODES}Job: {FFFFFF}%s (%d)", plevel, gender, age, PlayerInfo[targetid][pOrigin], InsertCommas(wallet), InsertCommas(bank), number, job, joblevel);
        SendClientMessage(playerid, SGREEN, string);

                format(string, sizeof(string), "Total Hours Online: %d | Warnings: %d | Upgrade Points: %d | Spawn Armor: %d | Experience: %d/%d | Crimes Committed: %d | Times Arrested: %d", hours, warns, upgradepoints, spawnhealth, exp, expamount - PlayerInfo[targetid][pLevelExp], crimes, arrests);
        SendClientMessage(playerid, SGREEN, string);
Replace HEXCODES with actual hex codes. I've set the %s and %d for white.
Reply


Messages In This Thread
Adding Multiple Colors in /Stats - by ArmandoRamiraz - 17.06.2013, 01:12
Re: Adding Colors in Stats - by park4bmx - 17.06.2013, 01:14
Re: Adding Colors in Stats - by ArmandoRamiraz - 17.06.2013, 01:15
Re: Adding Colors in Stats - by park4bmx - 17.06.2013, 01:22
Re: Adding Colors in Stats - by ArmandoRamiraz - 17.06.2013, 01:32
Re: Adding Colors in Stats - by Goldilox - 17.06.2013, 05:21
Re: Adding Colors in Stats - by ArmandoRamiraz - 18.06.2013, 07:40
Re: Adding Colors in Stats - by ArmandoRamiraz - 19.06.2013, 04:51
Re: Adding Colors in Stats - by Vince - 19.06.2013, 08:20
Re: Adding Colors in Stats - by ProjectRP - 19.06.2013, 08:43

Forum Jump:


Users browsing this thread: 3 Guest(s)