Colors are not similar -
Mikkel_RE - 11.10.2015
Hi can anyone tell me why the green colors are not the same?
This is the code:
pawn Код:
if(PlayerInfo[playerid][pHouseAccepted] > 0)
{
print("/// CREATE HOUSE ///");
printf("PlayerID: %d", playerid);
new hnametag[64];
// new hloctag[64];
//pickup
HousePickupIDTemp[playerid] = CreatePickup(1273,1,PlayerInfo[playerid][pHouseX],PlayerInfo[playerid][pHouseY],PlayerInfo[playerid][pHouseZ]);
printf("PickupID: %d", HousePickupIDTemp[playerid]);
//nametag
strmid(hnametag, PlayerInfo[playerid][pHouseTag], 0, strlen(PlayerInfo[playerid][pHouseTag]), 255);
House3dTextID[playerid] = Create3DTextLabel(hnametag,COLOR_GREEN,PlayerInfo[playerid][pHouseX],PlayerInfo[playerid][pHouseY],PlayerInfo[playerid][pHouseZ]+0.88,20.0,0,1);
printf("House3dTextID: %d", _:House3dTextID[playerid]);
//owner
new string[256];
format(string, sizeof(string),""COL_GREEN"Owner: "COL_WHITE"%s", Name(playerid));
HouseTextOwnerID[playerid] = Create3DTextLabel(string,COLOR_GREEN,PlayerInfo[playerid][pHouseX],PlayerInfo[playerid][pHouseY],PlayerInfo[playerid][pHouseZ]+0.74,20.0,0,1);
strmid(PlayerInfo[playerid][pHouseOwnerTag], Name(playerid), 0, strlen(Name(playerid)), 255);
printf("HouseTextOwnerID: %d", _:HouseTextOwnerID[playerid]);
//vehicle
HouseVehicleIDTemp[playerid] = CreateVehicle(PlayerInfo[playerid][pHouseCarModel],PlayerInfo[playerid][pHouseCarX],PlayerInfo[playerid][pHouseCarY],PlayerInfo[playerid][pHouseCarZ],PlayerInfo[playerid][pHouseCarFacing],PlayerInfo[playerid][pHouseCarColor],PlayerInfo[playerid][pHouseCarColor2], 900);
printf("VehicleID: %d", HouseVehicleIDTemp[playerid]);
print("/// CREATE HOUSE END ///");
}
else
{
ClearHouseInfo(playerid);
}
[img]
[/img]
Re: Colors are not the same -
AbyssMorgan - 11.10.2015
bad value alpha
Re: Colors are not the same -
Mikkel_RE - 11.10.2015
What do you mean?
Re: Colors are not the same -
AbyssMorgan - 11.10.2015
that is bad alpha value in color
https://en.wikipedia.org/wiki/RGBA_color_space
Re: Colors are not the same -
thefirestate - 11.10.2015
PHP код:
format(string, sizeof(string),""COL_GREEN"Owner: "COL_WHITE"%s", Name(playerid));
HouseTextOwnerID[playerid] = Create3DTextLabel(string,COLOR_GREEN,PlayerInfo[playerid][pHouseX],PlayerInfo[playerid][pHouseY],PlayerInfo[playerid][pHouseZ]+0.74,20.0,0,1);
Look at the format string the one color is COLOR_GREEN and the other is COL_GREEN, change the COLOR_GREEN in the 3dtextlabel code to COL_GREEN and they will probably be similar.
Re: Colors are not the same -
Mikkel_RE - 11.10.2015
It doesn't Work thefirestate, i have already tried that
Re: Colors are not the same -
jlalt - 11.10.2015
search where
"house" 3dtextlabel created check where "House" typed as a 3dtextlabel and post the code below
Re: Colors are not the same -
Mikkel_RE - 11.10.2015
That 'house' is the housetag, everyone can change it.
it is this line
pawn Код:
strmid(hnametag, PlayerInfo[playerid][pHouseTag], 0, strlen(PlayerInfo[playerid][pHouseTag]), 255);
House3dTextID[playerid] = Create3DTextLabel(hnametag,COLOR_GREEN,PlayerInfo[playerid][pHouseX],PlayerInfo[playerid][pHouseY],PlayerInfo[playerid][pHouseZ]+0.88,20.0,0,1);
Re: Colors are not the same -
jlalt - 11.10.2015
PHP код:
strmid(hnametag, PlayerInfo[playerid][pHouseTag], 0, strlen(PlayerInfo[playerid][pHouseTag]), 255);
House3dTextID[playerid] = Create3DTextLabel(hnametag,COL_GREEN,PlayerInfo[playerid][pHouseX],PlayerInfo[playerid][pHouseY],PlayerInfo[playerid][pHouseZ]+0.88,20.0,0,1);
or:
PHP код:
strmid(hnametag, PlayerInfo[playerid][pHouseTag], 0, strlen(PlayerInfo[playerid][pHouseTag]), 255);
House3dTextID[playerid] = Create3DTextLabel(hnametag,0x00FF28FF,PlayerInfo[playerid][pHouseX],PlayerInfo[playerid][pHouseY],PlayerInfo[playerid][pHouseZ]+0.88,20.0,0,1);