SA-MP Forums Archive
CJ/Last Played Class - Spawn 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)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: CJ/Last Played Class - Spawn bug (/showthread.php?tid=173514)



CJ/Last Played Class - Spawn bug - LarzI - 02.09.2010

Guys! I've searched for hours >.< Probably searching for the wrong sentances, but oh well.. :P

I started a blank script, added the stuff I wanted and all that, but still after picking new classes (player skins) CJ (or the last skin chosen before GMX, if gmx is executed) always shows as first skin, and you can't spawn.
Why is that happening? I mean, of course shouldn't it be possible to spawn as a skin not used in the script, but why does it even show up? It's annoying!

Help?

Script: (Don't be a retard and steal my code..)

http://pastebin.ca/1931199


Re: CJ/Last Played Class - Spawn bug - [HiC]TheKiller - 02.09.2010

NVM my eyes are fked. So is it just the CJ skin showing?


Re: CJ/Last Played Class - Spawn bug - LarzI - 02.09.2010

Nonono..
As you see, I have removed the CJ class, and added 9 additional.
The problem is that when I connect, I first see CJ (or the last class I picked if I just gmx'd), which I can't spawn with, then if I go through all classes, CJ is gone. All classes are spawnable, except CJ, which is good, since he shouldn't be there at all..


Re: CJ/Last Played Class - Spawn bug - [HiC]TheKiller - 02.09.2010

I fixed it by moving the dialogs to OnPlayerConnect. Not sure why it is doing that but if you move the dialogs it works .


Re: CJ/Last Played Class - Spawn bug - LarzI - 02.09.2010

Haha, it actually worked!
Thank you