How to store colors in variable
#1

Hi guys,
I wan to store color in variable(like 0x80FF80FF etc)
I'm try thisit don't work)

1)
Код:
new color;
if(sscanf(inputtext, "d", color)) return SCM...
ClanInfo[CLAN_COLOR] = color;
2)
Код:
new color[25];
if(sscanf(inputtext, "s", color)) return SCM...
ClanInfo[CLAN_COLOR] = color;
I get error(in line ClanInfo...)
Quote:

must be assigned to an array

3)

Код:
new color;
if(sscanf(inputtext, "s", color)) return SCM...
ClanInfo[CLAN_COLOR] = color;
My server crash with this.


4)

Код:
new color[20];
if(sscanf(inputtext, "s[20]", color)) return SCM...
ClanInfo[CLAN_COLOR] = strval(color);
I don't have idea what to try...
Reply


Messages In This Thread
How to store colors in variable - by GospodinX - 03.08.2018, 19:44
Re: How to store colors in variable - by Dayrion - 03.08.2018, 19:54
Re: How to store colors in variable - by DBZdabIt3Bro7 - 03.08.2018, 19:57
Re: How to store colors in variable - by RichardMagrao - 28.01.2019, 23:13
Re: How to store colors in variable - by fiki574 - 29.01.2019, 10:38
Re: How to store colors in variable - by SytonicX - 29.01.2019, 13:44

Forum Jump:


Users browsing this thread: 1 Guest(s)