Issue with Server Spawning
#1

Me and a friend are trying to get the spawning system for our server in correct order, however The first time you connect, you can register as usual, however you get a view of Idlewood Gas Station and you freeze there, you click the "Spawn" button or Shift/Sprint Key and you get spammed with Warning: "Excessive X, Y and Z were breached, thus last location set" and you have no choice but to /q. This is one of the many errors we are having and both of us have no idea on how to fix this, He has tried using

Код:
}
public OnPlayerSpawn(playerid)
{
    static
        Float: X, Float: Y, Float: Z
    ;
    GetPlayerPos( playerid, X, Y, Z );


    if( X >= 99999.0 || Y >= 99999.0 || Z >= 99999.0 || X <= -99999.0 || Y <= -99999.0 || Z <= -99999.0 ) {
        SendClientMessage( playerid, 0xa9c4e4ff, "Warning: Excessive X, Y, Z has been breached thus last location set." );
        SetPlayerPos( playerid, p_PlayerBuggerX[ playerid ], p_PlayerBuggerY[ playerid ], p_PlayerBuggerZ[ playerid ] );
    }
    else
    {
        p_PlayerBuggerX[ playerid ] = X;
        p_PlayerBuggerY[ playerid ] = Y;
        p_PlayerBuggerZ[ playerid ] = Z;
    }
    return 1;
	}
But it still gives us errors once we compile the Pwn, Any Help?
Reply
#2

What do the errors say?
Reply
#3

Here's a screen shot of What I get

Reply
#4

My best guess is that the player's spawn information is not being set correctly. If you want the player to spawn at a certain location use SetPlayerSpawnInfo so that when they do spawn, there is somewhere for them to go. I'm sorry if this doesn't fix your problem, I'm still having a hard time understanding the circumstances which create this issue.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)