OnGameModeInit bug. - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: OnGameModeInit bug. (
/showthread.php?tid=501009)
OnGameModeInit bug. -
Zeppo - 16.03.2014
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?
Re: OnGameModeInit bug. -
MP2 - 16.03.2014
Soundsike your OGMI callback isn't being fully executed. Debug messages.
Re: OnGameModeInit bug. -
Ceathor - 16.03.2014
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.
Re: OnGameModeInit bug. -
Zeppo - 16.03.2014
Код:
[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!