Colors in Plates
#1

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.
Reply
#2

Works for me.
Reply
#3

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

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

Show us your full codes.
Reply
#6

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.
Reply
#7

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


Forum Jump:


Users browsing this thread: 1 Guest(s)