Gangzone Color.
#1

This is my color define which i use to represent the team color and gangzone color of the usa team:
Код:
#define COLOR_BLUELIGHT 	0x1E90FFAA
It works fine on SetPlayerColor but when i use it in GangZone, it appears as purple ingame:
Код:
GangZoneShowForPlayer(playerid, AMERICA_BASE, COLOR_BLUELIGHT);
Where am i going wrong?
Reply
#2

PHP код:
GangZoneShowForPlayer(playeridAMERICA_BASE0x1E90FFFF); 
Reply
#3

Not working.
Reply
#4

try to remove AA and put FF

or use this color 0x0099FFFF
Reply
#5

Try this.

Код:
stock HexToInt(string[]) // By DracoBlue
{
  	if (string[0]==0) return 0;
 	new i;
  	new cur=1;
  	new 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;
}
Код:
#define    COLOR_BLUELIGHT 	"0x1E90FFAA"
GangZoneShowForPlayer(playerid, AMERICA_BASE, HexToInt( ZONE_BLUELIGHT ));
I had a same problem, but i think i used this to fix.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)