Posts: 801
Threads: 30
Joined: Mar 2013
Reputation:
0
Show the callback where that code is placed.
Posts: 1,830
Threads: 49
Joined: Nov 2014
Reputation:
0
You haven't defined playerid, as you can see, in some callbacks it has a playerid parameter, where others might not.
So you can use it here: OnPlayerConnect(playerid)
But not here: OnGameModeInit()
Posts: 98
Threads: 36
Joined: Mar 2015
Reputation:
0
It's ok. I was doing on a stock
Posts: 442
Threads: 133
Joined: Apr 2014
Reputation:
0
Dude, use it under OnPlayerConnect(playerid);
(playerid) is not defined in OnGameModeInit(); It does not have to be due to it being for the gamemode loading up not the player....
Posts: 1,830
Threads: 49
Joined: Nov 2014
Reputation:
0
If you use a function, you have to add the playerid parameter yourself.
MyFunc(playerid)