Weirdest Spawn Bug ever? - 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: Weirdest Spawn Bug ever? (
/showthread.php?tid=449266)
Weirdest Spawn Bug ever? -
Sandiel - 08.07.2013
Okay, I've encountered the weirdest bug I've ever seen, it's hilarious!

This happens once I spawn a player (he spawns after answering a dialog), before you ask me for the code, it's just a register dialog that spawns him once he's finished.
(Interior, virtual world are fine, I've even tried to SetSpawnInfo() to try to fix it but it doesn't work.)
Help is appreciated.
Re: Weirdest Spawn Bug ever? -
SuperViper - 08.07.2013
Make sure you
TogglePlayerSpectating back to 0 if you set it to 1 before spawning the player.
Re: Weirdest Spawn Bug ever? -
SAMP_Player - 08.07.2013
Make sure you're saving the players Interior ID's upon /q. ex : right after you save their stats on disconnect, do Stat[playerid]=0;. Maybe thats why its bugging when you re-connect to the server.. since you've already tried SetSpawnInfo()
Re: Weirdest Spawn Bug ever? -
Sandiel - 08.07.2013
Quote:
Originally Posted by SuperViper
Make sure you TogglePlayerSpectating back to 0 if you set it to 1 before spawning the player.
|
Thank you, I actually did enable spectating and didn't disable it before spawning, even though I thought I did.
Thanks again, appreciated!