SetPlayerColor Help
#1

Hey,
I got this code:

SetPlayerColor(PlayerID,strval(dini_Get(gangfile," Color")));
But it always sets color to black.. I think strval isn't good here, but what should I use instead?

If I use it like this:
SetPlayerColor(PlayerID,dini_Get(gangfile,"Color") );
I get
error 035: argument type mismatch (argument 2)

"Color" in file is defined as 0xB7B86EAA
Reply
#2

Search for StrToHex function on the forum, i believe that could help you.
Reply
#3

Quote:
Originally Posted by Don Correlli
Search for StrToHex function on the forum, i believe that could help you.
I saw it but it converts RRGGBB to hex color format, but the "Color" in the file (0xB7B86EAA) is not in RRGGBB format..
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)