Server closed connection
#1

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.
Reply
#2

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.
Reply
#3

I've added the OnPlayerSpawn in to pastebin with the PAWN highlighting for you. Thanks for the quick reply, though!

http://pastebin.com/yc2tEMKx
Reply
#4

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!
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)