undefined symbol
#1

Guys is this normal??
Код:
C:\Users\Admin\Desktop\Moj SRV\gamemodes\MojMod.pwn(1031) : error 017: undefined symbol "playerid"
C:\Users\Admin\Desktop\Moj SRV\gamemodes\MojMod.pwn(1032) : error 017: undefined symbol "playerid"
C:\Users\Admin\Desktop\Moj SRV\gamemodes\MojMod.pwn(1033) : error 017: undefined symbol "playerid"
C:\Users\Admin\Desktop\Moj SRV\gamemodes\MojMod.pwn(1034) : error 017: undefined symbol "playerid"
C:\Users\Admin\Desktop\Moj SRV\gamemodes\MojMod.pwn(1035) : error 017: undefined symbol "playerid"
C:\Users\Admin\Desktop\Moj SRV\gamemodes\MojMod.pwn(1036) : error 017: undefined symbol "playerid"
C:\Users\Admin\Desktop\Moj SRV\gamemodes\MojMod.pwn(1037) : error 017: undefined symbol "playerid"
C:\Users\Admin\Desktop\Moj SRV\gamemodes\MojMod.pwn(1038) : error 017: undefined symbol "playerid"
C:\Users\Admin\Desktop\Moj SRV\gamemodes\MojMod.pwn(1039) : error 017: undefined symbol "playerid"
C:\Users\Admin\Desktop\Moj SRV\gamemodes\MojMod.pwn(1040) : error 017: undefined symbol "playerid"
it is on these lines
Код:
RemoveBuildingForPlayer(playerid, 3369, 349.8750, 2438.2500, 15.4766, 0.25);
	RemoveBuildingForPlayer(playerid, 3369, 242.3984, 2438.2500, 15.4766, 0.25);
	RemoveBuildingForPlayer(playerid, 3367, 296.1406, 2438.2500, 15.4766, 0.25);
	RemoveBuildingForPlayer(playerid, 16598, 231.2813, 2545.7969, 20.0234, 0.25);
	RemoveBuildingForPlayer(playerid, 16602, 307.9531, 2543.4531, 20.3984, 0.25);
	RemoveBuildingForPlayer(playerid, 3269, 242.3984, 2438.2500, 15.4766, 0.25);
	RemoveBuildingForPlayer(playerid, 16599, 231.2813, 2545.7969, 20.0234, 0.25);
	RemoveBuildingForPlayer(playerid, 16098, 307.9531, 2543.4531, 20.3984, 0.25);
	RemoveBuildingForPlayer(playerid, 3271, 296.1406, 2438.2500, 15.4766, 0.25);
	RemoveBuildingForPlayer(playerid, 3269, 349.8750, 2438.2500, 15.4766, 0.25);
I fix this with
Код:
new playerid;
But is it normally to showthat error or my pawno is srewed??
Reply
#2

You put code in callback who dont have playerid function so thats why put on stock like this
Код:
stock RemoveObjectsForPlayer(playerid)
{
you remove object codes
}
And put this code on OnplayerConnect callback
Код:
RemoveObjectsForPlayer(playerid);
Reply
#3

Okay will do that thanks
Reply
#4

Did you add this under OnGameModeInit? It doesn't have a parameter called "playerid" you should remove these when a player connects, the fix you did above will not be detected by compile as an issue but this won't work either. You can directly add them under OnPlayerConnect or maybe use as henkas said.
Reply
#5

Quote:
Originally Posted by [ND]xXZeusXx.
Посмотреть сообщение
Did you add this under OnGameModeInit? It doesn't have a parameter called "playerid" you should remove these when a player connects, the fix you did above will not be detected by compile as an issue but this won't work either. You can directly add them under OnPlayerConnect or maybe use as henkas said.
Actually after i added new playerid it worked so...
Reply
#6

Quote:
Originally Posted by Micko123
Посмотреть сообщение
Actually after i added new playerid it worked so...
new playerid; will always be id 0 so if you reached 1000 players even it gonna keep removing id 0 objects
Reply
#7

What should i do then??
Should i put
Код:
RemoveObjectForPlayer
somwhere else?? Like on player connect like they said?
Reply
#8

Quote:
Originally Posted by Micko123
Посмотреть сообщение
What should i do then??
Should i put
Код:
RemoveObjectForPlayer
somwhere else?? Like on player connect like they said?
Yes you should put it under OnPlayerConnect Callback
Reply
#9

Yup i did. Thank you
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)