18.07.2016, 20:26
Hi, i made this sistem color who is saved in variable like this
But when I spawn on server if I have member 1 or 2 my color is black, thats code is blue and white
what is the problem?
PHP код:
new Color[16];//because I have 16 factions
then on a stock
stock PlayerColor(factionid)
{
format(Color[1],40,"0xFFFFFFC8");
format(Color[2],40,"0x0080C0C8");//si tot asa
return Color[factionid];//returnez culoarea de care am nevoie
}
then onplayerspawn
SetPlayerColor(playerid,PlayerColor(PlayerInfo[playerid][pMember]));
what is the problem?