TextdrawSetString Help (+REP Awarded for Best Help) - 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: TextdrawSetString Help (+REP Awarded for Best Help) (
/showthread.php?tid=336390)
TextdrawSetString Help (+REP Awarded for Best Help) -
Deduction - 22.04.2012
I think I know what the problem is but would like to have someone give me some info.
I am trying to set the colours of the Advertisement to Green as you see below.
All it is doing is showing White, and showing the following ingame:
? {00CC00} Advertisement: ? {FFFFFF}Deduction(6666) - Test
Would it be because I need to remove the Textdraw Text Colour and use this way?
Or?
pawn Код:
format(string, sizeof(string), "{00CC00}Advertisement: {FFFFFF}%s(%d) - %s", GetPlayerNameEx(playerid), PlayerInfo[playerid][pPnumber], params);
TextDrawSetString(DefaultSetup1[playerid], string);
Re: TextdrawSetString Help (+REP Awarded for Best Help) -
rVar - 22.04.2012
Hex colours are not supported in textdraws.
If you wanna use colored text use this:
~r~ - red
~g~- green
...etc..
ex:
("~r~This is red ~g~ this is green");
Use This:
pawn Код:
format(string, sizeof(string), "~g~Advertisement: ~w~%s(%d) - %s", GetPlayerNameEx(playerid), PlayerInfo[playerid][pPnumber], params);
TextDrawSetString(DefaultSetup1[playerid], string);
Re: TextdrawSetString Help (+REP Awarded for Best Help) -
Deduction - 22.04.2012
Thanks +Rep