[Pomoc] Hex Boje

Započeo vlado_plavsic, Jul 19, 2011, 12:43:53 POSLE PODNE

prethodna tema - sledeća tema

0 članova i 1 gost pregledaju ovu temu.

vlado_plavsic

Skripta koju koristim: BU
Detaljan opis problema: Menjam Boju gang zoni,I sad u Color Pickeru izaberem crvenu,Definisem je i stavim tamo gde mi treba,Compile ga i udjem na kucni kad ono gang zona koja treba da bude crvena ispadne zelena. Udjem na drugi ColorPicker (http://www.psyclops.com/tools/rgb/) i tu copy hex boju koju sam uzeo s' drugog Pickera i idem display i tu mi izbaci crvanu boju a ta boja je IG zelena -.-'.
Deo skripte: 0xFF0828 to je boja koju sam uzeo..
Neke slike/video za lakse dobivanje pomoci(neobavezno): /
Poslednja Izmena: Jul 19, 2011, 12:44:52 POSLE PODNE od Vlado_Plavsic

dragan12

A jel si stavio boju bas za tu zonu?

vlado_plavsic


Možda ti je problem u toj Gang Zoni komandi to što si pravio ajde postaj da vidimo što nije u redu..
Poslednja Izmena: Jul 19, 2011, 12:47:42 POSLE PODNE od Dane

dragan12

Daj GangZoneCreate i GangZoneShowForPlayer za tu zonu.

vlado_plavsic

GangZoneShowForPlayer(playerid, i, TurfInfo[i][zColor]);
    GangZoneShowForPlayer(playerid, crips, 0x2641FEAA);
GangZoneShowForPlayer(playerid, bloods, 0xFF0828);
if(gangzona[gzona1] == 0){GangZoneShowForPlayer(playerid,zona1,0xC0C0C096);}
else if(gangzona[gzona1] == 1){GangZoneShowForPlayer(playerid,zona1,0x2641FEAA);}
else if(gangzona[gzona1] == 2){GangZoneShowForPlayer(playerid, zona1, 0xFF0828);}
if(gangzona[gzona2] == 0){GangZoneShowForPlayer(playerid,zona2,0xC0C0C096);}
else if(gangzona[gzona2] == 1){GangZoneShowForPlayer(playerid,zona2,0x2641FEAA);}
else if(gangzona[gzona2] == 2){GangZoneShowForPlayer(playerid, zona2, 0xFF0828);}
if(gangzona[gzona3] == 0){GangZoneShowForPlayer(playerid,zona3,0xC0C0C096);}
else if(gangzona[gzona3] == 1){GangZoneShowForPlayer(playerid,zona3,0x2641FEAA);}
else if(gangzona[gzona3] == 2){GangZoneShowForPlayer(playerid, zona3, 0xFF0828);}
if(gangzona[gzona4] == 0){GangZoneShowForPlayer(playerid,zona4,0xC0C0C096);}
else if(gangzona[gzona4] == 1){GangZoneShowForPlayer(playerid,zona4,0x2641FEAA);}
else if(gangzona[gzona4] == 2){GangZoneShowForPlayer(playerid, zona4, 0xFF0828);}
if(gangzona[gzona5] == 0){GangZoneShowForPlayer(playerid,zona5,0xC0C0C096);}
else if(gangzona[gzona5] == 1){GangZoneShowForPlayer(playerid,zona5,0x2641FEAA);}
else if(gangzona[gzona5] == 2){GangZoneShowForPlayer(playerid, zona5, 0xFF0828);}
if(gangzona[gzona6] == 0){GangZoneShowForPlayer(playerid,zona6,0xC0C0C096);}
else if(gangzona[gzona6] == 1){GangZoneShowForPlayer(playerid,zona6,0x2641FEAA);}
else if(gangzona[gzona6] == 2){GangZoneShowForPlayer(playerid, zona6, 0xFF0828);}
        return 1;
}


EDIT: Nisam lepo upisao na CTRL+F :D


for(new i = 0; i < sizeof(TurfInfo); i++)
{
    Turfs[i] = GangZoneCreate(TurfInfo[i][zMinX],TurfInfo[i][zMinY],TurfInfo[i][zMaxX],TurfInfo[i][zMaxY]);
   
bloods = GangZoneCreate(1657.9149,-2169.0034,1961.7460,-1932.2606);//bloods
crips = GangZoneCreate(2413.7705,-2141.2697,2714.1125,-1932.2994);//crips
zona1 = GangZoneCreate(1961.7460,-1932.2606,2081.7622,-1752.2307);//1
zona2 = GangZoneCreate(1821.6416,-1932.3841,1961.5103,-1752.3869);//2
zona3 = GangZoneCreate(1821.6661,-1752.2747,2081.6589,-1612.3717);//3
zona4 = GangZoneCreate(2081.6010,-1894.4335,2218.1328,-1620.0500);//4
zona5 = GangZoneCreate(2213.8361,-1972.4354,2413.6171,-1732.3360);//5
zona6 = GangZoneCreate(2413.7482,-1932.1859,2642.8022,-1732.3687);//6
}

Poslednja Izmena: Jul 19, 2011, 12:53:32 POSLE PODNE od Vlado_Plavsic

dragan12

Na BU modu imas ovako nesto ispod objekata
for(new i = 0; i < sizeof(TurfInfo); i++)
{
    Turfs[i] = GangZoneCreate(TurfInfo[i][zMinX],TurfInfo[i][zMinY],TurfInfo[i][zMaxX],TurfInfo[i][zMaxY]);

I u to stavljas to bloods = GangZoneCreate.....