Log in - Server Closed to connection
#1

Hello

Yesterday i script commands and tried to test it i get this picture:

I Mean, "Server Closed to connection" is after public SpawniM2ngija(playerid), code is right and everything else too, at least yesterday was, can be here any problem ?
Code:
public SpawniM2ngija(playerid)
{
    SpawnPlayer(playerid);
	SendClientMessage(playerid, -1, "Oled sisselogitud - Andry Roleplay");
	SendClientMessage(playerid, -1, "~~~~~~~~~~~~~~~~~~~~~~~~~~~~");
	format(stri, sizeof(stri), "Mдngumoodi versioon: %s", Versioon);
	SendClientMessage(playerid, -1, stri);
	format(stri, sizeof(stri), "Viimane uuendus: %s", VUuendus);
	SendClientMessage(playerid, -1, stri);
	SendClientMessage(playerid, -1, "~~~~~~~~~~~~~~~~~~~~~~~~~~~~");
	if(M2ngijaInfo[playerid][mPosX] == 0 && M2ngijaInfo[playerid][mPosY] == 0 && M2ngijaInfo[playerid][mPosZ] == 0)
	{
	    SetPlayerPosition(playerid, 631.0473,-571.5751,16.3359,270.5452,0);
	    SendClientMessage(playerid, -1, "Spawnisime sind uude asukohta.");
	}
	if(M2ngijaInfo[playerid][mPosX] != 0)
	{
    	SetPlayerPosition(playerid, M2ngijaInfo[playerid][mPosX], M2ngijaInfo[playerid][mPosY], M2ngijaInfo[playerid][mPosZ], M2ngijaInfo[playerid][mAngle], M2ngijaInfo[playerid][mInt]);
    	SendClientMessage(playerid, -1, "Taastasime sinu endise asukoha.");
 	}
 	if(M2ngijaInfo[playerid][mKarakter] > 0) return SetPlayerSkin(playerid, M2ngijaInfo[playerid][mKarakter]);
	if(M2ngijaInfo[playerid][mKarakter] == 0) return SetPlayerSkin(playerid, 208);
 	return 1;
}
Reply
#2

There is a bug in the current release: if you use SpawnPlayer without SetSpawnInfo, then player gets kicked. So you need to call SetSpawnInfo before SpawnPlayer.
Reply
#3

But i don`t need SetSpawnInfo, so how can i put this into this code and do with it nothing. Or is there a way to do an other "SpawnPlayer" function?
Reply
#4

So, i putted SetSpawnInfo in OnPlayerRequestClass, (SpawniM2ngija come after this) and now he is spamming my public SpawniM2ngija texts and spamms these SetSpawnInfo spawn coordinates.

(In picture text is spamming every millisecond )
Reply
#5

So is there any solution or what i have to do? i still want to spawn player ( Lose these arrows and spawn button bottom of screen)
Reply
#6

BUMP, need fast help because all my things are waiting behind this
Reply
#7

BUMP
Reply
#8

BUMP
Reply
#9

call SetSpawnInfo before SpawnPlayer.

Read what people wrote.
Reply
#10

I said that if i but SetSpawnInfo(playerid, 0,0,0,0,0,0,0..); before spawnplayer then text is getting spamming.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)