Doesn't save color..
#1

I am trying to make a tag system but yet it doesnt save tag color..


At the first print(
PHP код:
SendFM(playerid, -1"Color: %s",TagInfo[playerid][TagFontColor]); 
It prints the correct argb color.
PHP код:
                                    SendFM(playerid, -1,  "Font: %s"TagInfo[playerid][TagFont]);
                                    
SendFM(playerid, -1,  "Color: %s"TagInfo[playerid][TagFontColor]);
                                    
SendFM(playerid, -1,  "Name: %s"TagInfo[playerid
But at the next dialog
it prints

Font: Ariel
Color: riel
Name: test
(Propabbly From Ariel i guess.. but why ?)
Of course, it doesn't show the text because the color is invalid..
Reply
#2

Colors are integers and they should be stored as such.
Reply
#3

You can save them as hexadecimal values, then use SSCANF with the x specifier to get their integer values.
Reply
#4

I tried with sample integers that represent colors but yet it doesnt save the colors correctly..
At the first print it prints the integer correctly but after moving to next dialog it changes to 114..


EDIT: Found another possible way.
Reply
#5

I'm doing exactly the same filterscript, but I finished.
Will you release yours ?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)