18.07.2016, 20:48
ok ok i understand the problems but I left code because my color is black not that color i wanted, so here is the new code
is just a test code that hadded too much mistake
new Color[16] = { 0xFFFFFFC8, 0x0080C0C8};
stock PlayerColor(factionid)
{
return Color[factionid-1];//returnez culoarea de care am nevoie
}
onplayerspawn
SetPlayerColor(playerid,PlayerColor(PlayerInfo[playerid][pMember]));
Now is work thanks for this new Color[16] = { 0xFFFFFFC8, 0x0080C0C8, ... };
I didnt expect to work if I do this
is just a test code that hadded too much mistake
new Color[16] = { 0xFFFFFFC8, 0x0080C0C8};
stock PlayerColor(factionid)
{
return Color[factionid-1];//returnez culoarea de care am nevoie
}
onplayerspawn
SetPlayerColor(playerid,PlayerColor(PlayerInfo[playerid][pMember]));
Now is work thanks for this new Color[16] = { 0xFFFFFFC8, 0x0080C0C8, ... };
I didnt expect to work if I do this