[Ajuda] Server Closed the Connection
#1

Pessoal como jб devem ter lido o titulo do tуpico, esta acontecendo um bug que nгo sei resolver, de uns dias placa quando eu vou logar no meu server de teste simplesmente buga da serve closed connection dai pra mim consegui logar preciso deletar as logs do SA-MP, nгo sei se isso й do meu GameMode ou й da nova versгo do SA-MP, vou deixar minha public OnPlayerConnect se alguйm poder achar o bug agradeзo.

pawn Code:
public OnPlayerConnect(playerid){
    new PlayerBan[128];
    GetPlayerName(playerid,PlayerBan,sizeof(PlayerBan));
    format(PlayerBan, 128,"Bans/%s.ini",PlayerBan);
    if(DOF2_FileExists(PlayerBan)){
        Logado[playerid] = 0;
        new str[128],DialogBan[300];
        format(str,128,"Seu Nick '%s' esta banido!\n",DOF2_GetString(PlayerBan,"Nome"));
        strcat(DialogBan,str);
        format(str,128,"Admin que lhe baniu'%s'\n",DOF2_GetString(PlayerBan,"Admin"));
        strcat(DialogBan,str);
        format(str,128,"Motivo '%s'\n",DOF2_GetString(PlayerBan,"Motivo"));
        strcat(DialogBan,str);
        format(str,128,"Data do Banimento '%s'\n",DOF2_GetString(PlayerBan,"Data"));
        strcat(DialogBan,str);
        format(str,128,"Hora do Banimento '%s'",DOF2_GetString(PlayerBan,"Horas"));
        strcat(DialogBan,str);
        ShowPlayerDialog(playerid, 20, DIALOG_STYLE_MSGBOX, "Banido",DialogBan , "Ok", "");
        SetTimerEx("DarKick", 100, false, "d", playerid);
        return 1;
    }
    new IPban[128];
    GetPlayerIp(playerid,IPban,sizeof(IPban));
    format(IPban, 128,"IPSBanidos/%s.ini",IPban);
    if(DOF2_FileExists(IPban)){
        Logado[playerid] = 0;
        new str[128],DialogBan[300];
        format(str,128,"Seu IP '%s' esta banido!\n",DOF2_GetString(IPban,"IP"));
        strcat(DialogBan,str);
        format(str,128,"Admin que lhe baniu '%s'\n",DOF2_GetString(IPban,"Admin"));
        strcat(DialogBan,str);
        format(str,128,"Motivo '%s'\n",DOF2_GetString(IPban,"Motivo"));
        strcat(DialogBan,str);
        format(str,128,"Data do banimento '%s'\n",DOF2_GetString(IPban,"Data"));
        strcat(DialogBan,str);
        format(str,128,"Hora do banimento '%s'",DOF2_GetString(IPban,"Horas"));
        strcat(DialogBan,str);
        ShowPlayerDialog(playerid, 20, DIALOG_STYLE_MSGBOX, "Banido(a)",DialogBan , "Ok", "");
        SetTimerEx("DarKick", 100, false, "d", playerid);
        return 1;
    }
    SetTimerEx("LoginPlayer", 1000, false, "d", playerid);
    Logado[playerid] = 1;
    new str[128], Nome[24];
    GetPlayerName(playerid, Nome, 24);
    format(str, 128, "  \t\t\t\t\t\t  >> Seja {FF0000}Bem-Vindo(a){FFFFFF} ao {FF0000}HarD{696969}SimulatioN{FFFFFF} %s <<", Nome);
    SendClientMessage(playerid, COR_BRANCO,str);
    RemoveBuildingForPlayer(playerid, 3720, 2098.5625, -1123.3125, 28.6406, 0.25);
    RemoveBuildingForPlayer(playerid, 3642, 2098.5625, -1123.3125, 28.6406, 0.25);
    //=-=-=-=-=-=-=-=-=-=-=[Objetos da HQ caminhoneiros]=-=-=-=-=-=-=-=-=-=-=-=
    RemoveBuildingForPlayer(playerid, 785, -476.9766, -664.5078, 12.4609, 0.25);
    RemoveBuildingForPlayer(playerid, 785, -460.2578, -591.9609, 11.0625, 0.25);
    RemoveBuildingForPlayer(playerid, 17019, -606.0313, -528.8203, 30.5234, 0.25);
    RemoveBuildingForPlayer(playerid, 1278, -573.0547, -559.6953, 38.5234, 0.25);
    RemoveBuildingForPlayer(playerid, 1278, -533.5391, -559.6953, 38.5469, 0.25);
    RemoveBuildingForPlayer(playerid, 1415, -541.4297, -561.2266, 24.5859, 0.25);
    RemoveBuildingForPlayer(playerid, 1415, -513.7578, -561.0078, 24.5859, 0.25);
    RemoveBuildingForPlayer(playerid, 800, -504.8516, -571.4063, 25.7422, 0.25);
    RemoveBuildingForPlayer(playerid, 1441, -503.6172, -540.5313, 25.2266, 0.25);
    RemoveBuildingForPlayer(playerid, 800, -500.7813, -567.7188, 25.7422, 0.25);
    RemoveBuildingForPlayer(playerid, 800, -500.7266, -574.1953, 25.7422, 0.25);
    RemoveBuildingForPlayer(playerid, 1415, -502.6094, -528.6484, 24.5859, 0.25);
    RemoveBuildingForPlayer(playerid, 1440, -502.1172, -521.0313, 25.0234, 0.25);
    RemoveBuildingForPlayer(playerid, 1441, -502.4063, -513.0156, 25.2266, 0.25);
    RemoveBuildingForPlayer(playerid, 1415, -620.4141, -490.5078, 24.5859, 0.25);
    RemoveBuildingForPlayer(playerid, 1415, -619.6250, -473.4531, 24.5859, 0.25);
    RemoveBuildingForPlayer(playerid, 1278, -573.0547, -479.9219, 38.5781, 0.25);
    RemoveBuildingForPlayer(playerid, 1278, -552.7656, -479.9219, 38.6250, 0.25);
    RemoveBuildingForPlayer(playerid, 1440, -553.6875, -481.6328, 25.0234, 0.25);
    RemoveBuildingForPlayer(playerid, 1441, -554.4531, -496.1797, 25.1641, 0.25);
    RemoveBuildingForPlayer(playerid, 1441, -537.0391, -469.1172, 25.2266, 0.25);
    RemoveBuildingForPlayer(playerid, 1278, -532.4688, -479.9219, 38.6484, 0.25);
    RemoveBuildingForPlayer(playerid, 1440, -516.9453, -496.6484, 25.0234, 0.25);
    RemoveBuildingForPlayer(playerid, 1440, -503.1250, -509.0000, 25.0234, 0.25);
    RemoveBuildingForPlayer(playerid, 1278, -512.1641, -479.9219, 38.5938, 0.25);
    RemoveBuildingForPlayer(playerid, 1278, -491.8594, -479.9219, 38.5859, 0.25);
    RemoveBuildingForPlayer(playerid, 17020, -475.9766, -544.8516, 28.1172, 0.25);
    RemoveBuildingForPlayer(playerid, 1278, -471.5547, -479.9219, 38.6250, 0.25);
    RemoveBuildingForPlayer(playerid, 3669, 1695.4844, -2131.1094, 15.0000, 0.25);
    RemoveBuildingForPlayer(playerid, 3670, 1713.8672, -2136.1953, 15.1719, 0.25);
    RemoveBuildingForPlayer(playerid, 3634, 1695.4844, -2131.1094, 15.0000, 0.25);
    RemoveBuildingForPlayer(playerid, 620, 1700.8047, -2123.7969, 11.7813, 0.25);
    RemoveBuildingForPlayer(playerid, 1307, 1708.7344, -2122.5938, 12.6875, 0.25);
    RemoveBuildingForPlayer(playerid, 3635, 1713.8672, -2136.1953, 15.1719, 0.25);
    RemoveBuildingForPlayer(playerid, 3720, 2098.5625, -1123.3125, 28.6406, 0.25);
    RemoveBuildingForPlayer(playerid, 3642, 2098.5625, -1123.3125, 28.6406, 0.25);
    RemoveBuildingForPlayer(playerid, 785, -476.9766, -664.5078, 12.4609, 0.25);
    RemoveBuildingForPlayer(playerid, 785, -460.2578, -591.9609, 11.0625, 0.25);
    RemoveBuildingForPlayer(playerid, 17349, -542.0078, -522.8438, 29.5938, 0.25);
    RemoveBuildingForPlayer(playerid, 17019, -606.0313, -528.8203, 30.5234, 0.25);
    RemoveBuildingForPlayer(playerid, 1278, -573.0547, -559.6953, 38.5234, 0.25);
    RemoveBuildingForPlayer(playerid, 1278, -533.5391, -559.6953, 38.5469, 0.25);
    RemoveBuildingForPlayer(playerid, 1415, -541.4297, -561.2266, 24.5859, 0.25);
    RemoveBuildingForPlayer(playerid, 17012, -542.0078, -522.8438, 29.5938, 0.25);
    RemoveBuildingForPlayer(playerid, 1415, -513.7578, -561.0078, 24.5859, 0.25);
    RemoveBuildingForPlayer(playerid, 800, -504.8516, -571.4063, 25.7422, 0.25);
    RemoveBuildingForPlayer(playerid, 1441, -503.6172, -540.5313, 25.2266, 0.25);
    RemoveBuildingForPlayer(playerid, 800, -500.7813, -567.7188, 25.7422, 0.25);
    RemoveBuildingForPlayer(playerid, 800, -500.7266, -574.1953, 25.7422, 0.25);
    RemoveBuildingForPlayer(playerid, 1415, -502.6094, -528.6484, 24.5859, 0.25);
    RemoveBuildingForPlayer(playerid, 1440, -502.1172, -521.0313, 25.0234, 0.25);
    RemoveBuildingForPlayer(playerid, 1441, -502.4063, -513.0156, 25.2266, 0.25);
    RemoveBuildingForPlayer(playerid, 1415, -620.4141, -490.5078, 24.5859, 0.25);
    RemoveBuildingForPlayer(playerid, 1415, -619.6250, -473.4531, 24.5859, 0.25);
    RemoveBuildingForPlayer(playerid, 1278, -573.0547, -479.9219, 38.5781, 0.25);
    RemoveBuildingForPlayer(playerid, 1278, -552.7656, -479.9219, 38.6250, 0.25);
    RemoveBuildingForPlayer(playerid, 1440, -553.6875, -481.6328, 25.0234, 0.25);
    RemoveBuildingForPlayer(playerid, 1441, -554.4531, -496.1797, 25.1641, 0.25);
    RemoveBuildingForPlayer(playerid, 1441, -537.0391, -469.1172, 25.2266, 0.25);
    RemoveBuildingForPlayer(playerid, 1278, -532.4688, -479.9219, 38.6484, 0.25);
    RemoveBuildingForPlayer(playerid, 1440, -516.9453, -496.6484, 25.0234, 0.25);
    RemoveBuildingForPlayer(playerid, 1440, -503.1250, -509.0000, 25.0234, 0.25);
    RemoveBuildingForPlayer(playerid, 1278, -512.1641, -479.9219, 38.5938, 0.25);
    RemoveBuildingForPlayer(playerid, 1278, -491.8594, -479.9219, 38.5859, 0.25);
    RemoveBuildingForPlayer(playerid, 17020, -475.9766, -544.8516, 28.1172, 0.25);
    RemoveBuildingForPlayer(playerid, 1278, -471.5547, -479.9219, 38.6250, 0.25);
    //=-=-=-=-=-=-=-=-=-=-=-=-=[PickUps]=-=-=-=-=-=-=-=-=-=-=
    AddStaticPickup(1318, 1, 1123.4906,-2036.7927,69.8870, 0);// Entrada prefeitura
    AddStaticPickup(1318, 1, 389.8895,173.8468,1008.3828, 0);// Saida prefeitura
    AddStaticPickup(1210, 1, 362.1283,173.5610,1008.3828, 0);// pegar emprego
    AddStaticPickup(1318, 1, 1192.4014, -771.2835, 1085.9309, 0);// HQ MOTOBOY
    AddStaticPickup(1318, 1, 2481.1663, -1536.7430, 24.1793, 0);// HQ MOTOBOY
    AddStaticPickup(1318, 1, 2229.0579,-1721.8325, 13.5663, 0);// Entrar Academia
    AddStaticPickup(1318, 1, 772.1119, -3.8986, 1000.7288, 0);
    AddStaticPickup(1318, 1, 1462.3883,-1010.1879,26.8438, 0); //Entrada Banco
    AddStaticPickup(1318, 1, 2305.6890,-16.0881,26.7496, 0); // Saida Banco
    return 1;
}
Imagem do que acontece:
/imageshack/img833/2324/samp107mz.png
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)