SA-MP Forums Archive
Colors in Plates - 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)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Colors in Plates (/showthread.php?tid=199080)



Colors in Plates - Mike Garber - 14.12.2010

How am I supposed to Use It?

SetVehicleNumberPlate(vehicleid, "{33FFFF}PLATE"); is not working, then It shows up something like "..80)" on the plate...

And there's no precise example how to use colors in numberplates, according to
https://sampwiki.blast.hk/wiki/Colour_Embedding it should be like I have done.


Re: Colors in Plates - FlatMaN - 14.12.2010

Works for me.


Re: Colors in Plates - Mike Garber - 14.12.2010

Well I'm using it in a string and found that there's some problems with that, but is there a solution? :S


Re: Colors in Plates - FlatMaN - 14.12.2010

IDK.
I got a problem, only if I convert the Hex colors to RRGGBB, with string.
The result is.. "**+\80*"


Re: Colors in Plates - wups - 14.12.2010

Show us your full codes.


Re: Colors in Plates - Mike Garber - 14.12.2010

Quote:
Originally Posted by wups
Посмотреть сообщение
Show us your full codes.
Well we're just creating strings, applying the colorcodes when we format the string and
then apply the string to SetVehicleNumberPlate.

Example:

pawn Код:
new string[32];
format(string, sizeof(string), "{COLOR}%s",VALUE);
SetVehicleNumberPlate(vehicleid,string);
And It works fine without the colorcode.


Re: Colors in Plates - woot - 14.12.2010

Don't show us an "example", show us the current code you are experiencing the problem with.