22.01.2015, 09:16
Greeting all,
Thanks for reading this thread. I have a really bad confusion with color system. Im willing to make a color system for factions. But i cant get them to work. I tried EVERYTHING. Only problem i get into is this
player type in /factioncolor FFFFFF. It goes all the way here. Where it saves.
strmid(FactionInfo[id][FactionColor], string, 0, strlen(string), 255);
Now. how do i attach 0x with FactionInfo[id][FactionColor] and then attach FF in the end.
same thing with this too
0xFF with FactionInfo[id][FactionColor].
I tried everything. I searched all the threads. None of them helped so far.
IF NOT,
Please tell me how can a playersave the faction color with this /teamcolor 000000 and it turns out into 0x000000FF
another thing, Which one is the correct form if im going to save whole color on the command.
THIS?
or This?
Its been a huge pain for me, I cant just get it working lol. Please help. Either im full of stress and cant get the small thing working or It cant be done literally what im trying to do.
Note: I dont want to save playercolor from getplayercolor.
Thanks for reading this thread. I have a really bad confusion with color system. Im willing to make a color system for factions. But i cant get them to work. I tried EVERYTHING. Only problem i get into is this
player type in /factioncolor FFFFFF. It goes all the way here. Where it saves.
strmid(FactionInfo[id][FactionColor], string, 0, strlen(string), 255);
Now. how do i attach 0x with FactionInfo[id][FactionColor] and then attach FF in the end.
same thing with this too
0xFF with FactionInfo[id][FactionColor].
I tried everything. I searched all the threads. None of them helped so far.
IF NOT,
Please tell me how can a playersave the faction color with this /teamcolor 000000 and it turns out into 0x000000FF
another thing, Which one is the correct form if im going to save whole color on the command.
THIS?
Quote:
enum fInfo { FactionTaken, FactionName[20], FactionLeader[MAX_PLAYER_NAME], Float:FactionSpawn[4], FactionColor[20] }; new FactionInfo[10][fInfo]; |
Quote:
enum fInfo { FactionTaken, FactionName[20], FactionLeader[MAX_PLAYER_NAME], Float:FactionSpawn[4], Float:FactionColor }; new FactionInfo[10][fInfo]; |
Note: I dont want to save playercolor from getplayercolor.