Server closes connection after tutorial?
#1

Hey, recently made a tutorial but at the end of it, it kicks the player. Can anyone help me?

pawn Код:
stock Tutorial(playerid)
{
    TogglePlayerSpectating(playerid, 1);
    TextDrawShowForPlayer(playerid, Text:Textdraw0);
    TextDrawShowForPlayer(playerid, Text:Textdraw1);
    TextDrawShowForPlayer(playerid, Text:Textdraw2);
    TextDrawShowForPlayer(playerid, Text:Textdraw3);
    SetTimer("tutorialtimer", 10000, false);
    return 1;
}
pawn Код:
public tutorialtimer(playerid)
{
    TogglePlayerSpectating(playerid, 0);
    TextDrawHideForPlayer(playerid, Text:Textdraw0);
    TextDrawHideForPlayer(playerid, Text:Textdraw1);
    TextDrawHideForPlayer(playerid, Text:Textdraw2);
    TextDrawHideForPlayer(playerid, Text:Textdraw3);
    SetPlayerPos(playerid, -2281.6372, 2288.2834, 4.9698);
    return 1;
}
Reply
#2

Do you have "SpawnPlayer" anywhere in your tutorial? if you do make sure you use the SetSpawnInfo function before hand
Reply
#3

EDIT: Fixed it, I figured out that it was clashing with 'OnPlayerRequestClass.'
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)