[Issue]OnGameModeInit Called Twice
#1

This has been marked as resolved and is no longer an issue. For reference, the original message is contained below.

----

Greetings to all and thanks for stopping in. As the title suggests, I'm having an issue with OnGameModeInit being called twice. Up until now I have been avoiding the issue hoping eventually it would route itself out, perhaps in some loose end I would tie up. Unfortunately, that was wishful thinking and the issue remains, and now it is becoming a true hassle.

Provided below is the session log output. I've got no filterscripts and the only plugin I am using is the latest(?) sscanf. As indicated, the initiation and startup outputs placed by myself to ensure the entire callback goes through displays not once, but twice. An extra bit of log here and there is no issue, but it also, for example, creates the classes twice, which has interfered with user tracking and things such as OnPlayerRequestClass.

I'd love some input and suggestions into getting this resolved. I'm sure, as with most things, it is a simple user error resulting from my incompetence, but that remains to be seen. Ah, more wishful thinking.

Код:
SA-MP Dedicated Server
----------------------
v0.3e, ©2005-2012 SA-MP Team

[11:26:44] filterscripts = ""  (string)
[27/07/2012 11:26:44] 
[27/07/2012 11:26:44] Server Plugins
[27/07/2012 11:26:44] --------------
[27/07/2012 11:26:44]  Loading plugin: sscanf
[27/07/2012 11:26:44] 

[27/07/2012 11:26:44]  ===============================

[27/07/2012 11:26:44]       sscanf plugin loaded.     

[27/07/2012 11:26:44]    © 2009 Alex "******" Cole

[27/07/2012 11:26:44]    0.3d-R2 500 Players "dnee"

[27/07/2012 11:26:44]  ===============================

[27/07/2012 11:26:44]   Loaded.
[27/07/2012 11:26:44]  Loaded 1 plugins.

[27/07/2012 11:26:44] 
[27/07/2012 11:26:44] Ban list
[27/07/2012 11:26:44] --------
[27/07/2012 11:26:44]  Loaded: samp.ban
[27/07/2012 11:26:44] 
[27/07/2012 11:26:44] 
[27/07/2012 11:26:44] Filterscripts
[27/07/2012 11:26:44] ---------------
[27/07/2012 11:26:44]   Loaded 0 filterscripts.

[27/07/2012 11:26:44] -->Gamemode: Initiation
[27/07/2012 11:26:44] -->Gamemode: Startup Complete
[27/07/2012 11:26:44] -->Gamemode: Initiation
[27/07/2012 11:26:44] -->Gamemode: Startup Complete
[27/07/2012 11:26:44] Number of vehicle models: 0
Console input: exit
[27/07/2012 11:26:45] --- Server Shutting Down.
[27/07/2012 11:26:45] -->Gamemode: ENTER OFFLINE
[27/07/2012 11:26:45] 

[27/07/2012 11:26:45]  ===============================

[27/07/2012 11:26:45]      sscanf plugin unloaded.    

[27/07/2012 11:26:45]  ===============================
Reply
#2

Are you sure you are not using main and OnGameModeInIt at the same time?
Reply
#3

I... thought I... terminated it properly. But, since it was legitimate advice, I took a look. Oh for the love of...

Thanks, main wasn't terminated properly. Well, it was, but the properly terminated one was commented out as opposed to the open one which, well, was not. What was that earlier I said about my own incompetence? Oh, right...

In hindsight, I should have really checked into it. I saw the pair, one commented, and just assumed it was the right one. Shame that this could have been avoided with looking just a bit deeper.
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)