Server closed connection - 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: Server closed connection (
/showthread.php?tid=348031)
Server closed connection -
Syntax - 03.06.2012
The first issue I had was that when I logged in, it returned 'Stay within the world boundaries' with a flickering white screen and some messed up screen crap, so, I added the AddPlayerClass:
Код:
AddPlayerClass(0, 1958.3783, 1343.1572, 15.3746, 269.1425, 0, 0, 0, 0, 0, 0);
Now when I login, it'll spawn me in Las Venturas with the CJ Skin, and then it immediately closes the connection and then on the server console, it returns that I left as:
Код:
[part] Congenital_Test has left the server (0:2)
I understand that the 0 means my player ID. I am simply looking for help on fixing this error so that I, and my friends, can play on the gamemode. Thank you.
Re: Server closed connection -
TheDominator - 03.06.2012
Hmm that alone couldn't cause a server closing it's connection. From what you've said it closes the connection as soon as the player is spawned, post your OnPlayerSpawn here.
Re: Server closed connection -
Syntax - 03.06.2012
I've added the OnPlayerSpawn in to pastebin with the PAWN highlighting for you. Thanks for the quick reply, though!
http://pastebin.com/yc2tEMKx
Re: Server closed connection -
Syntax - 04.06.2012
Fixed it now, I added:
Код:
SetSpawnInfo(playerid, 1, PlayerInfo[playerid][pModel], PlayerInfo[playerid][pPosX], PlayerInfo[playerid][pPosY], PlayerInfo[playerid][pPosZ], 1.0, -1, -1, -1, -1, -1, -1);
I added that where I have the 'Welcome to XXXXXXXXX' line. Thanks, though!