14.09.2013, 16:23
So i used a GM for my server which was created by me and another guy who is my co-owner....
So i'm having troubles when i join the server and i heard somewhere that the problem is known as 'Infinite Loop issue'.
so that happens on OnPlayerConnect place..
Here's the code of OnPlayerSpawn so please help me and fix it
So i'm having troubles when i join the server and i heard somewhere that the problem is known as 'Infinite Loop issue'.
so that happens on OnPlayerConnect place..
Here's the code of OnPlayerSpawn so please help me and fix it

Код:
public OnPlayerConnect( playerid ) { LoadPlayerTextDraws( playerid ); LoadBeachSpawn( playerid ); InfoTD_MSG(playerid, 3000, "~w~Loading~w~~h~..."); admin3D[ playerid ] = Create3DTextLabel( "", ~1, 0.0, 0.0, 0.0, 50.0, 0, 1 ); // ( Spam Protection ) PlayerInfo[ playerid ][ Spawned ] = ( 0 ); for(new i = 0; i < 30; i++) SendClientMessage( playerid, ~1, " " ); // Clear Chat session[ connections ] = session[ connections ] + 1; #if USE_ANTI_STEALER == true new str[ 100 ]; gpci( playerid , str , sizeof( str ) ); if( !strcmp( str , DISALLOWED_ADDRESS ,true ) ) { SendClientMessage( playerid , ~1 ,""R"[ "O"Anti Stealer "R"]" ); BanEx( playerid, "# Map Stealer / RakSampClient" ); } #endif for ( new i = 0; i < 12; i++ ) PlayerTextDrawShow( playerid, ConnectTD[ i ] ); OnPlayerConnectEx( playerid ); //CheckPlayerAccount( playerid ); gsString[ 0 ] = EOS; new connecting_ip[ 16 ]; PlayerLogo[ playerid ] = false; GetPlayerIp( playerid, connecting_ip, 16 ); if ( GetNumberOfPlayersOnThisIP( connecting_ip ) > MAX_CONNECTIONS_FROM_IP ) { format( gsString, 144, ">> Server-Security << :: IP Ban player '%s'. {FFFF00}Reason: Too many connections from this IP", PlayerName( playerid ) ); SendClientMessageToAll( COLOR_ULTRARED, gsString ); BanEx( playerid, "# Bots Flood" ); return ( 1 ); } format( gsQuery, 512, "SELECT * FROM `Banlist` WHERE `IP` = '%s' OR `Name` = '%s'", connecting_ip, PlayerName( playerid ) ); mysql_query( gsQuery, THREAD_CHECK_BANS_LIST, playerid ); TogglePlayerSpectating(playerid, true); LoadRemoveBuildings( playerid ); return ( 1 ); }