Posts: 130
Threads: 20
Joined: Jun 2007
Reputation:
0
I've just started having a very wierd, and annoying problem on my script, i have around 600+ lines under OnGameModeInit, and nothing is loading no more, only up to a certain point, my classes are loading, and with my cars been at the bottom of OnGameModeInit, they dont load at all, along with tonnes of other stuff!
I was wondering if there was a limit of how much you can put under OnGameModeInit, and if anyone has had this problem?
Posts: 365
Threads: 7
Joined: Sep 2007
Reputation:
0
check if you have any returns somwhere in OnGameModeInit - it will stop executing the rest of the code.
Posts: 870
Threads: 26
Joined: Mar 2009
Reputation:
0
Are you using a GM that you took from the forum ?
Posts: 130
Threads: 20
Joined: Jun 2007
Reputation:
0
@ Hustler:
The only return i have is righhttttt at the bottom of OnGameModeInit "return 1;"
@Peter:
No its my own script.
Posts: 2,200
Threads: 14
Joined: Apr 2009
Reputation:
0
Set debug messages every ~10 lines
Posts: 130
Threads: 20
Joined: Jun 2007
Reputation:
0
I did a few "print("1");" and 2, 3, 4 and found it doesnt complete the whole lot, stops after a few vehicles are created and misses out alot of lines.
Im really confused.
Edit: Stops after 173 lines.
Posts: 365
Threads: 7
Joined: Sep 2007
Reputation:
0
show us the code slightly before the last successfull print and the rest of it thereon.
Posts: 130
Threads: 20
Joined: Jun 2007
Reputation:
0
I've managed to fix this, overall it was 2 of my includes with carelessness mistakes in them, thanks for all who helped.