[HELP] error 017: undefined symbol "playerid"
#1

Im trying to remove these buildings.. but i get errors saying

tha 'playerid' is not defined..


pawn Code:
RemoveBuildingForPlayer(playerid, 3301, -282.2266, 2719.2578, 63.5703, 0.25);
RemoveBuildingForPlayer(playerid, 3299, -195.6016, 2768.7578, 61.4844, 0.25);
RemoveBuildingForPlayer(playerid, 3342, -275.1797, 2738.4844, 61.3047, 0.25);
RemoveBuildingForPlayer(playerid, 16776, -237.0234, 2662.8359, 62.6094, 0.25);
RemoveBuildingForPlayer(playerid, 1340, -197.4922, 2659.9141, 62.8203, 0.25);
RemoveBuildingForPlayer(playerid, 16062, -222.6641, 2663.3047, 66.2344, 0.25);
RemoveBuildingForPlayer(playerid, 16063, -222.3438, 2663.4531, 71.0156, 0.25);
RemoveBuildingForPlayer(playerid, 669, -206.6328, 2672.2422, 61.8438, 0.25);
RemoveBuildingForPlayer(playerid, 669, -278.9688, 2679.0234, 61.8438, 0.25);
RemoveBuildingForPlayer(playerid, 669, -156.0234, 2675.2031, 61.8438, 0.25);
RemoveBuildingForPlayer(playerid, 672, -243.0313, 2688.3047, 62.4844, 0.25);
RemoveBuildingForPlayer(playerid, 669, -356.8438, 2707.4219, 62.8047, 0.25);
RemoveBuildingForPlayer(playerid, 3284, -282.2266, 2719.2578, 63.5703, 0.25);
RemoveBuildingForPlayer(playerid, 669, -333.5703, 2719.3516, 61.8672, 0.25);
RemoveBuildingForPlayer(playerid, 672, -240.8359, 2737.1484, 62.4844, 0.25);
RemoveBuildingForPlayer(playerid, 3173, -275.1797, 2738.4844, 61.3047, 0.25);
RemoveBuildingForPlayer(playerid, 669, -269.6953, 2750.4609, 61.8438, 0.25);
RemoveBuildingForPlayer(playerid, 669, -297.8047, 2755.1875, 61.8438, 0.25);
RemoveBuildingForPlayer(playerid, 672, -245.3125, 2781.4922, 62.3672, 0.25);
RemoveBuildingForPlayer(playerid, 669, -232.1641, 2685.2734, 61.8438, 0.25);
RemoveBuildingForPlayer(playerid, 669, -202.5703, 2687.9688, 61.8438, 0.25);
RemoveBuildingForPlayer(playerid, 1308, -215.6328, 2695.3125, 61.7500, 0.25);
RemoveBuildingForPlayer(playerid, 1308, -193.6406, 2708.7188, 61.7500, 0.25);
RemoveBuildingForPlayer(playerid, 16622, -190.8359, 2707.5859, 73.3516, 0.25);
RemoveBuildingForPlayer(playerid, 3283, -195.6016, 2768.7578, 61.4844, 0.25);
RemoveBuildingForPlayer(playerid, 672, -213.2891, 2787.9297, 61.9219, 0.25);
RemoveBuildingForPlayer(playerid, 669, -211.9609, 2805.6641, 61.8750, 0.25);
RemoveBuildingForPlayer(playerid, 669, -155.0938, 2711.2344, 61.8438, 0.25);
RemoveBuildingForPlayer(playerid, 1308, -177.5078, 2687.7188, 61.7500, 0.25);
RemoveBuildingForPlayer(playerid, 1308, -181.1953, 2728.2109, 61.7500, 0.25);
RemoveBuildingForPlayer(playerid, 669, -164.1641, 2754.7656, 61.8438, 0.25);
RemoveBuildingForPlayer(playerid, 669, -168.4844, 2740.5547, 61.3672, 0.25);
RemoveBuildingForPlayer(playerid, 669, -174.5547, 2769.4609, 61.1094, 0.25);
RemoveBuildingForPlayer(playerid, 1308, -150.2734, 2700.0781, 61.1484, 0.25);
Reply
#2

Put that to OnPlayerConnect
Reply
#3

Quote:
Originally Posted by Oscii
View Post
Im trying to remove these buildings.. but i get errors saying

tha 'playerid' is not defined..


pawn Code:
RemoveBuildingForPlayer(playerid, 3301, -282.2266, 2719.2578, 63.5703, 0.25);
RemoveBuildingForPlayer(playerid, 3299, -195.6016, 2768.7578, 61.4844, 0.25);
RemoveBuildingForPlayer(playerid, 3342, -275.1797, 2738.4844, 61.3047, 0.25);
RemoveBuildingForPlayer(playerid, 16776, -237.0234, 2662.8359, 62.6094, 0.25);
RemoveBuildingForPlayer(playerid, 1340, -197.4922, 2659.9141, 62.8203, 0.25);
RemoveBuildingForPlayer(playerid, 16062, -222.6641, 2663.3047, 66.2344, 0.25);
RemoveBuildingForPlayer(playerid, 16063, -222.3438, 2663.4531, 71.0156, 0.25);
RemoveBuildingForPlayer(playerid, 669, -206.6328, 2672.2422, 61.8438, 0.25);
RemoveBuildingForPlayer(playerid, 669, -278.9688, 2679.0234, 61.8438, 0.25);
RemoveBuildingForPlayer(playerid, 669, -156.0234, 2675.2031, 61.8438, 0.25);
RemoveBuildingForPlayer(playerid, 672, -243.0313, 2688.3047, 62.4844, 0.25);
RemoveBuildingForPlayer(playerid, 669, -356.8438, 2707.4219, 62.8047, 0.25);
RemoveBuildingForPlayer(playerid, 3284, -282.2266, 2719.2578, 63.5703, 0.25);
RemoveBuildingForPlayer(playerid, 669, -333.5703, 2719.3516, 61.8672, 0.25);
RemoveBuildingForPlayer(playerid, 672, -240.8359, 2737.1484, 62.4844, 0.25);
RemoveBuildingForPlayer(playerid, 3173, -275.1797, 2738.4844, 61.3047, 0.25);
RemoveBuildingForPlayer(playerid, 669, -269.6953, 2750.4609, 61.8438, 0.25);
RemoveBuildingForPlayer(playerid, 669, -297.8047, 2755.1875, 61.8438, 0.25);
RemoveBuildingForPlayer(playerid, 672, -245.3125, 2781.4922, 62.3672, 0.25);
RemoveBuildingForPlayer(playerid, 669, -232.1641, 2685.2734, 61.8438, 0.25);
RemoveBuildingForPlayer(playerid, 669, -202.5703, 2687.9688, 61.8438, 0.25);
RemoveBuildingForPlayer(playerid, 1308, -215.6328, 2695.3125, 61.7500, 0.25);
RemoveBuildingForPlayer(playerid, 1308, -193.6406, 2708.7188, 61.7500, 0.25);
RemoveBuildingForPlayer(playerid, 16622, -190.8359, 2707.5859, 73.3516, 0.25);
RemoveBuildingForPlayer(playerid, 3283, -195.6016, 2768.7578, 61.4844, 0.25);
RemoveBuildingForPlayer(playerid, 672, -213.2891, 2787.9297, 61.9219, 0.25);
RemoveBuildingForPlayer(playerid, 669, -211.9609, 2805.6641, 61.8750, 0.25);
RemoveBuildingForPlayer(playerid, 669, -155.0938, 2711.2344, 61.8438, 0.25);
RemoveBuildingForPlayer(playerid, 1308, -177.5078, 2687.7188, 61.7500, 0.25);
RemoveBuildingForPlayer(playerid, 1308, -181.1953, 2728.2109, 61.7500, 0.25);
RemoveBuildingForPlayer(playerid, 669, -164.1641, 2754.7656, 61.8438, 0.25);
RemoveBuildingForPlayer(playerid, 669, -168.4844, 2740.5547, 61.3672, 0.25);
RemoveBuildingForPlayer(playerid, 669, -174.5547, 2769.4609, 61.1094, 0.25);
RemoveBuildingForPlayer(playerid, 1308, -150.2734, 2700.0781, 61.1484, 0.25);
If you have them under OnGameModeInit that will give you that error,
Put them under
pawn Code:
public OnPlayerConnect(playerid)
Reply
#4

Put it under
pawn Code:
public OnPlayerConnect(playerid)
Reply
#5

Still gives me errors... O-o
Reply
#6

Quote:
Originally Posted by nickdodd25
View Post
If you have them under OnGameModeInit that will give you that error,
Put them under
pawn Code:
public OnPlayerConnect(playerid)
Fixed it!,


Thank you very much!

+1 rep for all that helped
Reply
#7

It should work to put it under OnPlayerConnect(playerid) if not you have done something seriously wrong.
Reply
#8

It compiled but the buildings are still there ingame.. O-o
Reply
#9

THANKS !!!
Reply
#10

Thanks very much
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)