RGBA(HEX) Color
#1

Hello, I have a question! I'm using dini saving system and I want to save RGBA(HEX) colors how I can save it and load it? I tried to save it as string, but SetPlayerColor doesn't working!
Please help, +1 REP!

Thanks!
Reply
#2

You could save it as an integer, but I believe it's also possible to save it as a string and then use sscanf and the "x" specifier when you load it.
Reply
#3

I'm not using sscanf!!! I'm using only dini!
+ If I make it as an integer, it saves as 0!
Reply
#4

Can I load it without using sscanf?
Reply
#5

What's the big deal? Everything DINI does is in strings, but you don't know what basic code tells you, so you don't know that right...

Download SSCANF R2, use it for defining a string for a hex using X or H in the format.
Reply
#6

Quote:
Originally Posted by Kraeror
Посмотреть сообщение
I'm not using sscanf!!! I'm using only dini!
+ If I make it as an integer, it saves as 0!
use both
Reply
#7

Hex is integer.

Just save the hex code using dini_IntSet. And then you'll get it back as a integer using dini_Int.
Reply
#8

When I save it as integer, it saves to 0!

Can you give me code for loading the color using Ysi_ini or Dini?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)