04.05.2013, 01:40
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
But it still gives us errors once we compile the Pwn, Any Help?
Код:
} 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; }