team colour problem
#1

#define ITALIAN_MAFIA 0
#define RUSSIAN_MAFIA 1
/////////////////////////////////////////////
#define ITALIAN_MAFIA_COLOR 0xFA0505 //Red//
#define RUSSIAN_MAFIA_COLOR 0x59BA56 //Green//


When I select class and talk example I select russian i talk green. Then I f4 to change to italian mafia and it keeps green. sometimes it goes red sometimes green.

forward SetPlayerToTeamColor(playerid);
public SetPlayerToTeamColor(playerid)
{
if(gTeam[playerid] == ITALIAN_MAFIA)
{
SetPlayerColor(playerid,ITALIAN_MAFIA_COLOR);
}
else if(gTeam[playerid] == RUSSIAN_MAFIA)
{
SetPlayerColor(playerid, RUSSIAN_MAFIA_COLOR);
}
return 1;
}

they are perfect I cant find the problem.
Reply


Messages In This Thread
team colour problem - by oscar7610 - 15.04.2012, 22:40
Re: team colour problem - by oscar7610 - 15.04.2012, 22:53
Re: team colour problem - by @Riichard - 15.04.2012, 23:40
Re: team colour problem - by oscar7610 - 16.04.2012, 00:33
Re: team colour problem - by @Riichard - 16.04.2012, 00:39
Re: team colour problem - by sniperwars - 16.04.2012, 06:30

Forum Jump:


Users browsing this thread: 1 Guest(s)