15.08.2015, 14:31
Wait, you use "pColor" to set the color of the player but you load the color into "Color" array?
Код:
public OnPlayerSpawn(playerid) { SetPlayerColor(playerid, PlayerInfo[playerid][pColor]); print(PlayerInfo[playerid][pColor]); return 1; }
Код:
public Login(playerid) { new rows, fields; cache_get_data(rows, fields); if (rows) { // other stuff cache_get_field_content(0, "Color", PlayerInfo[playerid][Color], db, 15); } else { // other stuff } }