SA-MP Forums Archive
how to add colour to SendPlayerFormattedText - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: how to add colour to SendPlayerFormattedText (/showthread.php?tid=279955)



how to add colour to SendPlayerFormattedText - xbox360boy66 - 29.08.2011

i have a problem my message keeps commin up in red and i want it in yellow. i have defined yellow and some other colours. ive put COLOR_YELLOW in front of playerid, but its still red. Here is the command.

Код:
	GameTextForPlayer(playerid,"~R~Inferno-Gaming™ ~Y~FreeRoam ~G~Server", 5000, 5);
	SendPlayerFormattedText(playerid, "Welcome to Inferno-Gaming™ FreeRoam, Type /Help For Help", 0);
	SendPlayerFormattedText(playerid, "Dont forget to register at www.inferno-gaming.co.uk", 0);
	ActivePlayers[playerid]++;
	LastGaveCash[playerid] = GetTickCount();
the text on GameTextForPlayers is also in red. not in the red, yellow, green colours i want it to be


Re: how to add colour to SendPlayerFormattedText - BlackWolf120 - 29.08.2011

seems correct to me but maybe its affected by the elevated letters...
Try to remove the elevated letters first if smth. changes.

Also try to write the colour letters small and not big, i duno if this changes anything though but its worth the try.

Also could u show us the defining u mentioned?
Cause for ur code u posted its completly unnecessary...