Posts: 319
Threads: 7
Joined: Jul 2012
Reputation:
0
Pawn doesn't know if your script is meant to be a gamemode or filterscript.
Renaming OnFilterScriptInit to OnGameModeInit won't crash the compiler.
There must be something else going on.
Posts: 93
Threads: 35
Joined: Mar 2012
Reputation:
0
Yes it should go under OnGameModeInit(). Correct me if i'm wrong, you want to take content from a filterscript and insert it in an already running gamemode right?
Posts: 77
Threads: 11
Joined: Sep 2014
Reputation:
0
There should be a line in your FS at the top saying #define Filterscript. Remove it and put anything that was under OnFilterScriptInit under OnGameModeInit.
Posts: 171
Threads: 13
Joined: Dec 2015
public OnFilterscriptInit() To public OnGameModeInit()
Posts: 6,242
Threads: 8
Joined: Jun 2008
Obviously renaming it hasn't worked... Can people actually read the thread before posting up simpleton solutions?
I think the OP needs to start over on the script and get it done that way, rather than simply trying to "save time" by making a problem, and ending up waiting around for someone to fluke an answer.
Usually when Pawn freezes like that, there's a bigger issue. You may need to check for your braces, and look over your code a bit more, as it could be a simple typo that's causing this.