Problem with colors, messed up!
#1

This is was i've got:
Quote:

#define COLOR_GRAY 0xAFAFAFAA

#define COLOR_GREEN 0x00FF00AA

#define COLOR_RED 0xAA3333AA

#define COLOR_YELLOW 0xFFFF00AA

#define COLOR_PINK 0xFF66FFAA

#define COLOR_BLUE 0x0000BBAA

#define COLOR_LIGHTBLUE 0x33CCFFAA

#define COLOR_DARKRED 0x660000AA

#define COLOR_ORANGE 0xFF9900AA

#define COLOR_BEGE 0xFFA97FFF

#define COLOR_BROWN 0x804000FF

#define COLOR_LGREEN 0x3C9D6DFF

#define COLOR_LRED 0xFF6C6CFF

#define COLOR_PURPLE 0xFF0080FF

Quote:

#define TEAM_WORKER 0


#define TEAM_PIMP 1

#define TEAM_GOLFER 2

#define TEAM_TRIAD 3

#define TEAM_MECHANIC 4

#define TEAM_BIKER 5

#define TEAM_MEDIC 6

#define TEAM_SWAT 7

#define TEAM_HICK 8

#define TEAM_PILOT 9

#define TEAM_TORENO 10

#define TEAM_NANG 11

#define TEAM_CHICKEN 12

#define TEAM_ARMY 13

Quote:

if(gTeam[playerid] == TEAM_WORKER) {



SetPlayerColor(playerid,COLOR_ORANGE); // Orange

}

else if(gTeam[playerid] == TEAM_PIMP) {


SetPlayerColor(playerid,COLOR_RED); // Red

}

else if(gTeam[playerid] == TEAM_GOLFER) {



SetPlayerColor(playerid,COLOR_DARKRED); // Darkred

}

else if(gTeam[playerid] == TEAM_TRIAD) {


SetPlayerColor(playerid,COLOR_PINK); // Pink

}

else if(gTeam[playerid] == TEAM_MECHANIC) {


SetPlayerColor(playerid,COLOR_LIGHTBLUE); // LightBlue

}

else if(gTeam[playerid] == TEAM_BIKER) {


SetPlayerColor(playerid,COLOR_BLUE); // Blue

}

else if(gTeam[playerid] == TEAM_MEDIC) {


SetPlayerColor(playerid,COLOR_PURPLE); // Purple

}

else if(gTeam[playerid] == TEAM_SWAT) {


SetPlayerColor(playerid,COLOR_LGREEN); // LGreen

}

else if(gTeam[playerid] == TEAM_HICK) {


SetPlayerColor(playerid,COLOR_BROWN); // Brown

}

else if(gTeam[playerid] == TEAM_PILOT) {


SetPlayerColor(playerid,COLOR_GRAY); // Gray

}

else if(gTeam[playerid] == TEAM_TORENO) {


SetPlayerColor(playerid,COLOR_BEGE); // Bege

}

else if(gTeam[playerid] == TEAM_NANG) {


SetPlayerColor(playerid,COLOR_LRED); // lRed

}

else if(gTeam[playerid] == TEAM_CHICKEN) {


SetPlayerColor(playerid,COLOR_YELLOW); // Yellow

}

else if(gTeam[playerid] == TEAM_ARMY) {


SetPlayerColor(playerid,COLOR_GREEN); // Green

}

But team Pilot, Toreneno, chicken, nang and army keep getting orange, the workers color. And if i change the workers color to YELLOW, the keep getting the color yellow etc...Can someone please tell me what i've did wrong?
Reply
#2

set the players team because it's always 0 (worker)
Reply
#3

I don't get it, what do you mean?
Reply
#4

pawn Код:
gTeam[playerid] =0;//worker
gTeam[playerid] =1;//Pimp
etc
you don't set these and a new var is always 0 like at you gTeam[playerid] is the same for all players ( 0 ) only if you don't set it to another value like 1,2,3 ... and 0 is worker and all the player will be taken as workers
Reply
#5

Dude, ofcourse i've got that... It's not like i can't script or something..
Reply
#6

Quote:
Originally Posted by urkiefly101
Dude, ofcourse i've got that... It's not like i can't script or something..
Relax, he's just trying to help you.
Reply


Forum Jump:


Users browsing this thread: 4 Guest(s)