How to make string ?
#10

You should define colors at the top of your script like this:
Get an html color code, and do this:

pawn Код:
COLOR_WHITE FFFFFF
Of course, this is not the thing I want to do, seeing as it is not in the correct format. Simply do this to change it.

pawn Код:
COLOR_WHITE 0xFFFFFFFF
See what I added? I added the 0x in front of it as-well as two more letters at the end. The last two are for alpha, of which you can change to a number for the alpha if needed.

Then, when you want to use the color, simply do something like this

pawn Код:
SendClientMessage(playerid, COLOR_WHITE, "Sends this color in white");
So it will look like this:

Sends this color in white
Reply


Messages In This Thread
How to make string ? - by [M.A]Angel[M.A] - 24.07.2012, 14:09
Re: How to make string ? - by milanosie - 24.07.2012, 14:14
Re: How to make string ? - by [M.A]Angel[M.A] - 24.07.2012, 14:17
Re: How to make string ? - by Akira297 - 24.07.2012, 14:18
Re: How to make string ? - by milanosie - 24.07.2012, 14:21
Re: How to make string ? - by [M.A]Angel[M.A] - 24.07.2012, 14:25
Re: How to make string ? - by milanosie - 24.07.2012, 14:33
Re: How to make string ? - by Kindred - 24.07.2012, 14:45
Re: How to make string ? - by [M.A]Angel[M.A] - 24.07.2012, 15:01
Re: How to make string ? - by Kindred - 24.07.2012, 15:11

Forum Jump:


Users browsing this thread: 1 Guest(s)