Posts: 791
Threads: 93
Joined: Oct 2009
Reputation:
0
Is it allowed to create public function before main() ? Does it change something?
Posts: 372
Threads: 8
Joined: Jan 2011
Reputation:
0
I think you're allowed to create it, don't see why would that change anything.
Posts: 613
Threads: 11
Joined: Aug 2010
Reputation:
0
Off course you can create publics before main().
in includes sometimes callbacks are created also, and it works fine, doesnt it?
Posts: 2,593
Threads: 38
Joined: Aug 2007
Reputation:
0
I don't generally see a valid purpose for main. Anything done there can be done in OnGamemodeInit
Posts: 1,317
Threads: 23
Joined: Feb 2010
Reputation:
0
PAWN is based on C, main is for the compiler to know where the program starts, thats how I recall it.
Posts: 140
Threads: 28
Joined: Jul 2010
Reputation:
0
the order doesn't matter, if you will define OnGameModeInit before main, main stiil will be called first.
public functions called when an event happens. OnGameModeInit calls when the game mode loaded.