public OnPlayerConnect(playerid) { printf("player ID %i [IP/port: %s:%i] connected to the server", playerid); SpectateJoinCamera(playerid); if(!IsValidDynamic3DTextLabel(PlayerData[playerid][pNameTag])) PlayerData[playerid][pNameTag] = CreateDynamic3DTextLabel("Loading nametag...", 0xFFFFFFFF, 0.0, 0.0, 0.1, NT_DISTANCE, .attachedplayer = playerid, .testlos = 1); if(g_PlayerLagTimer[playerid] != -1) { KillTimer(g_PlayerLagTimer[playerid]); g_PlayerLagTimer[playerid] = -1; } g_LagState[playerid] = false; GetPlayerIp(playerid, g_PlayerIp[playerid], 16); PlayAudioStreamForPlayer(playerid, "https://*******/WJ2Frx"); ResetPlayerWeapons(playerid), SetPlayerArmedWeapon(playerid, 0); TP_AwaitingPos[playerid][0] = -1.0; if (g_ServerRestart) { TextDrawShowForPlayer(playerid, gServerTextdraws[3]); } for(new i = 0; i != MAX_PLAYER_ATTACHED_OBJECTS; i ++) { RemovePlayerAttachedObject(playerid, i); } LoadPlayerSoccerTextDraws(playerid); PlayerData[playerid][pTLAttached] = 0; // FlashLight system PlayerData[playerid][pFLAttached] = 0; // FlashLight system CancelSelectTextDraw(playerid); GetPlayerIp(playerid, PlayerData[playerid][pIP], 16); GetPlayerName(playerid, PlayerData[playerid][pUsername], MAX_PLAYER_NAME + 1); ResetStatistics(playerid); CreateTextDraws(playerid); new str[300]; format(str, sizeof(str), "SELECT * FROM `blacklist` WHERE `Username` = '%s' OR `IP` = '%s'", ReturnName(playerid), PlayerData[playerid][pIP]); mysql_tquery(g_iHandle, str, "OnQueryFinished", "dd", playerid, THREAD_BAN_LOOKUP); return true; }
The only thing i could think of causing this is a hook that stopped the sequence, seek for any previous hooks in ur includes or something, also try running crashdetect and check ur log
|
[21:13:14] ----- ARPG has now completely loaded. [21:13:14] Number of vehicle models: 3 [21:13:32] [query:p] from 127.0.0.1 [21:13:32] [query:i] from 127.0.0.1 [21:13:32] [query:p] from 127.0.0.1 [21:13:32] [query:c] from 127.0.0.1 [21:13:32] [query:r] from 127.0.0.1 [21:13:32] [query:p] from 127.0.0.1 [21:13:35] [query:i] from 127.0.0.1 [21:13:35] [query:p] from 127.0.0.1 [21:13:35] [query:c] from 127.0.0.1 [21:13:35] [query:r] from 127.0.0.1 [21:13:35] [query:p] from 127.0.0.1 [21:13:56] [connection] 127.0.0.1:62681 requests connection cookie. [21:14:27] Kicking 127.0.0.1 because they didn't logon to the game. [21:14:51] [query:p] from 127.0.0.1 [21:14:53] [query:p] from 127.0.0.1 [21:14:54] [query:p] from 127.0.0.1 [21:14:55] [query:i] from 127.0.0.1 [21:14:55] [query:p] from 127.0.0.1 [21:14:55] [query:c] from 127.0.0.1 [21:14:55] [query:r] from 127.0.0.1 [21:14:55] [query:p] from 127.0.0.1 [21:14:57] [query:p] from 127.0.0.1 [21:18:09] [connection] incoming connection: 127.0.0.1:62681 id: 0 [21:18:09] Incoming connection for player ID 0 [IP/port: 127.0.0.1:62681] [21:18:09] Invalid client connecting from 127.0.0.1
[21:57:49] {FFFFFF}SA-MP {B9C9BF}0.3.7-R3 {FFFFFF}Started [21:57:52] Connecting to 127.0.0.1:7777... [21:57:53] Connected. Joining the game... [21:58:23] Server closed the connection. |
Are you using the correct client/server versions? This really doesn't seem like a problem with your callback any more.
|
I finally found the problem. I disabled mysql_log(ALL); in OnGameModeinit and it works now, pretty weird..
|