Register Spawning 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: Register Spawning bug (
/showthread.php?tid=431609)
Register Spawning bug -
KiNG3 - 19.04.2013
Fixed I was suppose to have '%s' isntead of just %s, so it didn't record properly :P
Re: Register Spawning bug -
LarzI - 19.04.2013
Debug your spawn-thread. Somehow pStatus isn't being assigned to the value 1.
Re: Register Spawning bug -
KiNG3 - 19.04.2013
I know that, but I wasted three hours attempting to figure it out...
Re: Register Spawning bug -
LarzI - 19.04.2013
I repeat: Debug your spawn-thread, or possibly all related code.
https://sampwiki.blast.hk/wiki/Debugging
Re: Register Spawning bug -
KiNG3 - 19.04.2013
I tried debugging, it shows that Status = 1; is being called.
Re: Register Spawning bug -
LarzI - 19.04.2013
Did you try checking under OnPlayerSpawn? Is it still 1? It shouldn't be as the player gets kicked. Conclusion: You reset the value somewhere between THREAD_REGISTER_SPAWN and OnPlayerSpawn.
Re: Register Spawning bug -
KiNG3 - 19.04.2013
Here, do you have skype or steam? I sent you a message, go on teamviewer or I'll send you my script and have you take a look.. For yourself, if you awnt.
Re: Register Spawning bug -
LarzI - 19.04.2013
I'm currently at school (food-break) and I don't have access to skype here because of Internet-block (I'm browsing on my phone, but I can probably take a look at it when I get home (in about an hour or two)
Re: Register Spawning bug -
KiNG3 - 19.04.2013
:P.. It's 2:24 AM, i'll try to stay up a bit more for you :P