18.05.2014, 05:41
(
Последний раз редактировалось AiRaLoKa; 18.05.2014 в 07:16.
)
Quote:
pInfo[playerid][pColor] is the wrong value.
Do this: pawn Код:
EDIT: You can also shorten your code to: pawn Код:
|
EDIT:
i've edited my LoadColor into
pawn Код:
stock LoadColor(playerid,onlogin)
{
if(onlogin == 1) return SetPlayerColor(playerid, ((pInfo[playerid][pUseCol]) ? (pInfo[playerid][pColor]) : (PlayerColors[playerid]))), printf("%d", pInfo[playerid][pColor]);
return 1;
}
pawn Код:
LoadColor(playerid, 0);