Adding Colors in Stats
#10

Quote:
Originally Posted by ArmandoRamiraz
Посмотреть сообщение
Ok, I tried what you did and got a few errors. I will try to make it more specific lol.


Here's the code and what I want to do:
Код:
		format(string, sizeof(string), "Stats for %s (ID: %d):", PlayerName(targetid), targetid);
		SendClientMessage(playerid, WHITE, string);
		
	        format(string, sizeof(string),	"Level: %d | Gender: %s | Age: %d | Origin: %s | Cash: $%s | Bank: $%s | Phone Number: %d | Job: %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);
For "Level | Gender | Age |" etc I want it to be a certain color. And for "%d, %s" I want to be white. I hope this makes it easier.

Try, changing "SGREEN" to GREEN..
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: 2 Guest(s)