Skin select and Login - 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: Skin select and Login (
/showthread.php?tid=408021)
Skin select and Login -
Kudoz - 16.01.2013
Hello again guys!
When I connect to my server, I log in and select my skin. But everytime I switch skin, I mean, press the --> button for next skin, I have to login again.. and when I do, it says I'm already logged in. So when I try to switch skin again, it all happens again, lol.
How can I fix this?
Re: Skin select and Login -
kepa333 - 16.01.2013
Show your code.
Re: Skin select and Login -
CodyCummings - 16.01.2013
It sounds like you're showing your login dialog in OnPlayerRequestClass, everytime you click the left or right buttons to switch skins, it calls that callback thus showing your dialog again. Maybe set a variable to say that a player is logged in after they've logged in successfully and then in OnPlayerRequestClass make it so it only shows the dialog if the player isn't logged in, that should fix your issue.