Transparent gang zone
#1

So after capturing a zone, I have this code:

Код:
GangZoneStopFlashForAll(GangZone[zoneid][ZoneHolder]);
			new colour[9];
			format(colour, 9, "%s50", Gang[gangid][GangColor]);
			GangZoneShowForAll(GangZone[zoneid][ZoneHolder], HexToInt(colour));
but it just goes transparent and no color is set for the zone.

hextoint stock:

Код:
stock HexToInt(string[]) // DracoBlue
{
	if (string[0] == 0) return 0;
	new i, cur=1, res = 0;
	for (i=strlen(string);i>0;i--) {
		if (string[i-1]<58) res=res+cur*(string[i-1]-48); else res=res+cur*(string[i-1]-65+10);

		cur=cur*16;
	}
	return res;
}
Reply


Messages In This Thread
Transparent gang zone - by Rageparadise - 30.09.2015, 20:48
AW: Transparent gang zone - by Nero_3D - 30.09.2015, 22:15
Re: AW: Transparent gang zone - by Rageparadise - 01.10.2015, 17:22
AW: Transparent gang zone - by Nero_3D - 01.10.2015, 17:46
Re: Transparent gang zone - by Crayder - 01.10.2015, 17:57
Re: Transparent gang zone - by Rageparadise - 02.10.2015, 23:12

Forum Jump:


Users browsing this thread: 2 Guest(s)