Login Problem - 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: Login Problem (
/showthread.php?tid=193202)
Login Problem -
Gigi-The-Beast - 25.11.2010
Hey guys
I have a strange problem
I started making a script from scratch using mysql
So, when i start the server and join it, i freeze at the login menu(sometimes, sometimes not),but if i reconnect, then everything is fine(logins from the first try)
I debuged the script with print(); i've putted it under every public
So this is what i have got from it:
Код:
//First spawn - it sometimes logs,sometimes stucks on the spawn = the <-> spawn is not shown during the login
[12:39:16] OnGameModeInit
[12:39:42] Incoming connection: 127.0.0.1:1352
[12:39:42] [join] Gigi_Falcone has joined the server (0:127.0.0.1)
[12:39:42] OnPlayerConnect
[12:39:42] OnConnectResponse
[12:39:45] LoginPlayer
[12:39:45] LoadPlayerStats
[12:39:45] OnUserLogin
[12:39:45] OnPlayerRequestClass
[12:39:47] SavePlayerStats
[12:39:47] OnPlayerDisconnect
[12:39:47] [part] Gigi_Falcone has left the server (0:1)
//Reconnect,when it logs in corectly = the <-> spawn is shown during the login
[12:35:57] OnGameModeInit
[12:36:23] Incoming connection: 127.0.0.1:1329
[12:36:23] [join] Gigi_Falcone has joined the server (0:127.0.0.1)
[12:36:23] OnPlayerConnect
[12:36:23] OnConnectResponse
[12:36:26] LoginPlayer
[12:36:26] OnPlayerRequestClass
[12:36:26] LoadPlayerStats
[12:36:26] OnUserLogin
[12:36:26] OnPlayerStateChange
[12:36:26] OnPlayerSpawn
[12:36:26] OnPlayerStateChange
[12:36:28] SavePlayerStats
[12:36:28] OnPlayerDisconnect
[12:36:28] [part] Gigi_Falcone has left the server (0:1)
From this i can see that in the first example the OnPlayerRequestClass is not called after LoginPlayer, why?
Why sometimes is it called, sometimes not? (and allways not when joining the server for first time if it was closed)
My code:
http://pastebin.com/VwwY96Xh
Re: Login Problem -
Gigi-The-Beast - 25.11.2010
Any help?