Gangzone Color. - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Gangzone Color. (
/showthread.php?tid=643647)
Gangzone Color. -
Uvais - 24.10.2017
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?
Re: Gangzone Color. -
DeStRoY232 - 24.10.2017
PHP код:
GangZoneShowForPlayer(playerid, AMERICA_BASE, 0x1E90FFFF);
Re: Gangzone Color. -
Uvais - 24.10.2017
Not working.
Re: Gangzone Color. -
DeStRoY232 - 24.10.2017
try to remove AA and put FF
or use this color 0x0099FFFF
Re: Gangzone Color. -
Danisoni - 24.10.2017
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.