Posts: 1,167
Threads: 57
Joined: Jul 2010
Reputation:
0
Now I stared to work on new clear self made GM, but I already can't figure out, it is posibble convert string to color and opposite, like, you can adjust your chat color by type color by self.
Posts: 460
Threads: 42
Joined: Nov 2009
Reputation:
0
Well now it belongs on if you want to have a command like /chatcolour or just have a command with these params /talk [colour] [text]
Posts: 1,167
Threads: 57
Joined: Jul 2010
Reputation:
0
I want use it in many ways:
Like SCM instead of SendClientMessage - saw this somewhere.
For chat where leader can change chat color by type /chatcolor 0x0..... and than thats color saving into a file as string and than I can make SendClientMessage(playerid,colorstring[],text);
something like that
Posts: 1,167
Threads: 57
Joined: Jul 2010
Reputation:
0
That I know, I just think is it posibble to store for example 0x000000FF into a file as for example Color[]
and than read from file as SendClientMessage(playerid,Color[] ?
If I use
/color 0x000000FF
tmp = strtok(....
SendClientMessage(playerid,tmp,"Hello world!");
Posts: 1,464
Threads: 11
Joined: Jan 2008
Reputation:
0
Yes, just use sscanf for that.
Posts: 1,167
Threads: 57
Joined: Jul 2010
Reputation:
0
Done, done and done thx , its really help me out, everything working well