Undefined Sympol "PlayerID"
#1

I tried adding a mapping to my script, and the "undefined symbol, "PlayerID" problem is happening now.

Mapping:
Код:
// El Corona Map
	RemoveBuildingForPlayer(playerid, 708, 1837.6406, -1968.3438, 12.1875, 0.25);
	RemoveBuildingForPlayer(playerid, 3667, 1826.6016, -1989.6094, 15.2109, 0.25);
	RemoveBuildingForPlayer(playerid, 620, 1808.8828, -2016.6094, 9.6719, 0.25);
	RemoveBuildingForPlayer(playerid, 1308, 1813.0859, -2013.0313, 12.7500, 0.25);
	RemoveBuildingForPlayer(playerid, 712, 1811.2500, -2012.6172, 21.9609, 0.25);
	RemoveBuildingForPlayer(playerid, 620, 1808.8828, -1985.3359, 9.6719, 0.25);
	RemoveBuildingForPlayer(playerid, 1413, 1810.8281, -1971.3594, 13.7344, 0.25);
	RemoveBuildingForPlayer(playerid, 700, 1812.3438, -1968.8047, 11.4453, 0.25);
	RemoveBuildingForPlayer(playerid, 1413, 1816.1094, -1971.3594, 13.7344, 0.25);
	RemoveBuildingForPlayer(playerid, 3588, 1826.6016, -1989.6094, 15.2109, 0.25);
	RemoveBuildingForPlayer(playerid, 1412, 1821.3828, -1971.3594, 13.7344, 0.25);
	RemoveBuildingForPlayer(playerid, 1413, 1826.6406, -1971.5859, 13.7344, 0.25);
	RemoveBuildingForPlayer(playerid, 1413, 1831.9063, -1971.5938, 13.7344, 0.25);
	RemoveBuildingForPlayer(playerid, 4982, 1892.5391, -2012.8281, 21.3750, 0.25);
	RemoveBuildingForPlayer(playerid, 5086, 1892.5391, -2012.8281, 21.3750, 0.25);
	RemoveBuildingForPlayer(playerid, 1412, 1837.1719, -1971.3594, 13.7344, 0.25);
	RemoveBuildingForPlayer(playerid, 1413, 1842.4453, -1971.3594, 13.7344, 0.25);
	RemoveBuildingForPlayer(playerid, 1413, 1847.7266, -1971.3594, 13.7344, 0.25);
	CreateObject(8417, 1820.30640, -1989.98254, 12.60040,   -0.02000, 0.00000, 0.00000);
	CreateObject(946, 1838.58118, -1975.69128, 14.73560,   0.00000, 0.00000, 90.00000);
	CreateObject(946, 1838.29749, -1986.78174, 14.73560,   0.00000, 0.00000, 90.00000);
	CreateObject(946, 1838.47693, -1995.82312, 14.73560,   0.00000, 0.00000, 90.00000);
	CreateObject(946, 1838.25049, -2006.71155, 14.73560,   0.00000, 0.00000, 90.00000);
	CreateObject(946, 1803.76648, -2006.86560, 14.73560,   0.00000, 0.00000, -90.00000);
	CreateObject(946, 1803.95618, -1995.65173, 14.73560,   0.00000, 0.00000, -90.00000);
	CreateObject(946, 1803.71204, -1986.71069, 14.73560,   0.00000, 0.00000, -90.00000);
	CreateObject(946, 1804.04285, -1975.64905, 14.73560,   0.00000, 0.00000, -90.00000);
Reply
#2

add
pawn Код:
new playerid
or :
pawn Код:
new PlayerID;
Reply
#3

Are RemoveBuildingForPlayers in OnPlayerConnect? If not, move them there. Leave CreateObjects in OnGameModeInit.
Reply
#4

Quote:
Originally Posted by UltraScripter
Посмотреть сообщение
add
pawn Код:
new playerid
or :
pawn Код:
new PlayerID;
what? No.... it's because the RemoveBuildingForPlayers have to go under OnPlayerConnect.
Reply
#5

or try to replace it in other public that have playerid id example
[PAWN]
public OnPlayerConnect(playerid) //there is playerid !!!............
{

return 1;
}
Reply
#6

Quote:
Originally Posted by ******
Посмотреть сообщение
None of the lines you posted use "PlayerID", they all use "playerid" - which is a VERY important distinction. Use the correct case and you will be fine.
Sometimes not posting anything at all can be sensible.. even for you mr. ******. He indeed did not use uppercase letters in the code, so the case you mentioned won't make any difference with his matter.
Reply
#7

Try changing the position of this code:

pawn Код:
RemoveBuildingForPlayer(playerid, 708, 1837.6406, -1968.3438, 12.1875, 0.25);
RemoveBuildingForPlayer(playerid, 3667, 1826.6016, -1989.6094, 15.2109, 0.25);
RemoveBuildingForPlayer(playerid, 620, 1808.8828, -2016.6094, 9.6719, 0.25);
RemoveBuildingForPlayer(playerid, 1308, 1813.0859, -2013.0313, 12.7500, 0.25);
RemoveBuildingForPlayer(playerid, 712, 1811.2500, -2012.6172, 21.9609, 0.25);
RemoveBuildingForPlayer(playerid, 620, 1808.8828, -1985.3359, 9.6719, 0.25);
RemoveBuildingForPlayer(playerid, 1413, 1810.8281, -1971.3594, 13.7344, 0.25);
RemoveBuildingForPlayer(playerid, 700, 1812.3438, -1968.8047, 11.4453, 0.25);
RemoveBuildingForPlayer(playerid, 1413, 1816.1094, -1971.3594, 13.7344, 0.25);
RemoveBuildingForPlayer(playerid, 3588, 1826.6016, -1989.6094, 15.2109, 0.25);
RemoveBuildingForPlayer(playerid, 1412, 1821.3828, -1971.3594, 13.7344, 0.25);
RemoveBuildingForPlayer(playerid, 1413, 1826.6406, -1971.5859, 13.7344, 0.25);
RemoveBuildingForPlayer(playerid, 1413, 1831.9063, -1971.5938, 13.7344, 0.25);
RemoveBuildingForPlayer(playerid, 4982, 1892.5391, -2012.8281, 21.3750, 0.25);
RemoveBuildingForPlayer(playerid, 5086, 1892.5391, -2012.8281, 21.3750, 0.25);
RemoveBuildingForPlayer(playerid, 1412, 1837.1719, -1971.3594, 13.7344, 0.25);
RemoveBuildingForPlayer(playerid, 1413, 1842.4453, -1971.3594, 13.7344, 0.25);
RemoveBuildingForPlayer(playerid, 1413, 1847.7266, -1971.3594, 13.7344, 0.25);
To OnPlayerConnect

Good luck
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)