TextdrawSetString Help (+REP Awarded for Best Help)
#1

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);
Reply
#2

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);
Reply
#3

Thanks +Rep
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)