OnPlayerRequestClass shows no skins even while AddPlayerClass is used.
#1

So long story short, I updated a script, and now OnPlayerRequestClass doesn't work. ADDPLAYERCLASS IS WORKING. I recall having a similar issue in an RP script, but it was due to stats not saving. This is a MySQL script, and stats seem to be saving. Any advice?

EDIT: Stats ARE saving. The only thing not working is OnPlayerRequestClass.

EDIT 2: AddPlayerClass is added using a loop. the 3rd item in each section here is the Skin ID (See images):

EDIT 3: OK, this is strange behavior. I have a SetPlayerCameraPos at 459.339813, 2244.680419, 37.988002
However, the camera actually gets put at some old coordinates which were overwritten with these. WHY?! The old coordinates are not even in the script!

Код:
new const gTeam[][E_TEAM] =
{
	{
		"United Kingdom",
		0x5BC178FF, // Green
		124,
		{1112.5555,1893.9420,10.8203},
		{1067.1792,1874.2611,10.8203},
		{1056.7815,1959.6592,10.8203},
		{1016.9058, 1838.6093, 1134.1102, 2043.6521}
	},
	{
		"United States",
		0x4FB4F2FF, // Blue
		287,
		{-184.5609, 2756.9797, 62.6875},
		{-267.8232, 2671.0178, 62.6759},
		{-177.7588, 2691.3469, 62.6875},
		{-353.515625, 2574.21875, -113.28125, 2796.875}
	},
	{
		"Africa",
		0xFF6600FF,
		142,
		{-826.6808, 1447.5480, 14.0498},
		{-749.4841, 1596.6335, 27.1172},
		{-732.7656, 1546.1833, 38.9930},
		{-875.8406, 1389.667, -607.2495, 1623.225}
	},
	{
		"Australia",
		0x7D3093FF, // Purple
		248,
		{-1483.5421, 2645.1912, 58.7281},
		{-1472.9514, 2531.4434, 55.8359},
		{-1529.2646, 2584.8423, 55.8359},
		{-1640.625, 2501.953125, -1359.375, 2748.046875}
	},
	{
		"Russia",
		0x40E0D0FF, // Torquoise
		285,
		{-42.0783, 1154.6727, 19.7103},
		{-99.1854, 1086.7211, 19.7422},
		{-122.2590, 1165.3926, 19.7422},
		{-309.375, 1024.21875, 103.125, 1211.71875}
	}
};
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)