undefined symbol "playerid"
#1

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?
Reply
#2

show us the bit of code that it says is wrong
Reply
#3

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)
Reply
#4

Код:
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"
Reply
#5

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

Thank you! It works perfectly now.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)