SetPlayerColor
#7

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
        }


}
Reply


Messages In This Thread
SetPlayerColor - by finelaq - 15.08.2015, 13:23
Re: SetPlayerColor - by Crystallize - 15.08.2015, 13:45
Re: SetPlayerColor - by finelaq - 15.08.2015, 13:49
Re: SetPlayerColor - by Andre02 - 15.08.2015, 14:00
AW: SetPlayerColor - by Macronix - 15.08.2015, 14:05
Re: AW: SetPlayerColor - by finelaq - 15.08.2015, 14:10
AW: SetPlayerColor - by Macronix - 15.08.2015, 14:31
Re: AW: SetPlayerColor - by finelaq - 16.08.2015, 17:54
AW: SetPlayerColor - by Macronix - 16.08.2015, 17:59

Forum Jump:


Users browsing this thread: 1 Guest(s)