SA-MP Forums Archive
undefined symbol "playerid" - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: undefined symbol "playerid" (/showthread.php?tid=253632)



undefined symbol "playerid" - Institute - 07.05.2011

I'm suddenly getting this error every time, I'm new to Pawno, so I'm propably doing something incredible stupid.. Could anyone tell me how to fix this, and why I get this error?


Re: undefined symbol "playerid" - Hobod - 07.05.2011

show us the bit of code that it says is wrong


Re: undefined symbol "playerid" - park4bmx - 07.05.2011

need to show us the code and the line of the Error
but is probbably you Forwarder a function and forgot to forwasrd it with (playerid)


Re: undefined symbol "playerid" - Institute - 07.05.2011

Код:
public OnGameModeInit()
{
	SetGameModeText("Test");
	AddPlayerClass(0, 1958.3783, 1343.1572, 15.3746, 269.1425, 0, 0, 0, 0, 0, 0);
	SetPlayerWorldBounds(playerid, 2942,825, 35,03363, -980,9415, -2814,368);
	return 1;
}
I never had this error before, making people and vehicles spawn works fine, but I get a lot of strange errors since I'm trying out things.

Код:
D:\Server\gamemodes\test.pwn(33) : error 017: undefined symbol "playerid"



Re: undefined symbol "playerid" - Joe Staff - 07.05.2011

Try placing the SetPlayerWorldBoundaries code under OnPlayerConnect(playerid) // notice the 'playerid' parameter is created for you


Re: undefined symbol "playerid" - Institute - 07.05.2011

Thank you! It works perfectly now.