OnGameModeInit bug.
#1

I was coding and went onto my server to see if the code was working but I noticed the yellow arrows on the doors but I've disabled them and it's only happened recently.

Код:
EnableStuntBonusForAll(0);
	DisableInteriorEnterExits();
	SetNameTagDrawDistance(45.0);
	AllowInteriorWeapons(1);
	UsePlayerPedAnims();
	ShowPlayerMarkers(0);
All of the ones I have on OnGameModeInit

EDIT: Ok, things are bugging out. The house textlabels and other textlabels aren't showing but the business ones are?
Reply
#2

Soundsike your OGMI callback isn't being fully executed. Debug messages.
Reply
#3

Yep, as MP2 said, put some debug messages in there to find out where it stops executing.
pawn Код:
print("DEBUG: Running EnableStuntBonusForAll(0)");
When you've found out what's causing it, you should be able to fix it.
Reply
#4

Код:
[12:27:36] OnGameo
[12:27:36] [DEBUG] Businesses loading..
[12:27:36] Gamemode loaded.
[12:27:36] Number of vehicle models: 0
Would it be the businesses or the code underneath it?

EDIT: I've fixed the problem, Thanks guys!
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)