Lag no sv
#1

Eai pessoal, beleza ?

na hora de logar, eu clico em login, ai demora 1 min pra logar, por ae, ta com lag, porq sera ? ja tirei os fs ..

olha o log das coisas que tem no sv:

[17:22:12] Esperando Jogadores...
[17:22:12] Number of vehicle models: 87
[17:22:36] Incoming connection: 192.168.2.100:52242
[17:22:36] [join] Tenente_CaldatoFT has joined the server (0:192.168.2.100)
[17:22:44] Tenente_CaldatoFT tem Logado.

ta dando esse erro de incoming, por isso a demora para logar ..
Reply
#2

incoming nao й erro sempre aparece
Reply
#3

ah sim, mas meu servidor comeзo dar lag do nada, oque serб que aconteceu ? rsrs
Reply
#4

Vai saber...
Reply
#5

Serб que tem muito veiculo ?

Veiculo eu acho que nгo й, pq nunca deu lag, parece que tem tipo um tempo para logar, vai saber ..
Reply
#6

Й lag na hora de logar? Pode ser alguma coisa na hora de dar load nas suas informaзхes de algum arquivo...
Reply
#7

Confere a OnPlayerConect, sistemas desnecessбrios, objetos/carros/Scriptfiles pesados!(Os arquivos dos Players) atй achar oque pode estar ocasionando
Reply
#8

Tipo, aparece a tela de login, coloco minha senha e login, ai aparece as noticias de quando loga, ai o box some ne, e fica na pagina de login sem o box, ai demora uns 2 minutos para mostrar o personagem e tal
Reply
#9

Pode ser na public que loga o Player!
Reply
#10

olha a public do login ae ..

PHP код:
public OnPlayerLogin(playerid,password[])
{
    new 
tmp2[256];
    new 
string2[64];
    
format(string2sizeof(string2), "Players/%s.ini"PlayerName(playerid));
    
strmid(PlayerInfo[playerid][pKey], dini_Get(string2"Key"), 0strlen(dini_Get(string2"Key")), 255);
    new 
FileUserFile fopen(string2io_read);
    if (
UserFile)
    {
        if(
strcmp(PlayerInfo[playerid][pKey],passwordtrue ) == 0)
        {
                new 
key256 ] , val256 ];
                new 
Data256 ];
                while (
fread(UserFileDatasizeof(Data)))
                {
                    
key ini_GetKeyData );
                    if( 
strcmpkey "Level" true ) == ) { val ini_GetValueData ); PlayerInfo[playerid][pLevel] = strvalval ); }
                    if( 
strcmpkey "AdminLevel" true ) == ) { val ini_GetValueData ); PlayerInfo[playerid][pAdmin] = strvalval ); }
                    if( 
strcmpkey "Helpers" true ) == ) { val ini_GetValueData ); PlayerInfo[playerid][pHelper] = strvalval ); }
                    if( 
strcmpkey "SocioLevel" true ) == ) { val ini_GetValueData ); PlayerInfo[playerid][pSocio] = strvalval ); }
                    if( 
strcmpkey "DonateRank" true ) == ) { val ini_GetValueData ); PlayerInfo[playerid][pVIP] = strvalval ); }
                    if( 
strcmpkey "UpgradePoints" true ) == ) { val ini_GetValueData ); PlayerInfo[playerid][gPupgrade] = strvalval ); }
                    if( 
strcmpkey "ConnectedTime" true ) == ) { val ini_GetValueData ); PlayerInfo[playerid][pConnectTime] = strvalval ); }
                    if( 
strcmpkey "Registered" true ) == ) { val ini_GetValueData ); PlayerInfo[playerid][pReg] = strvalval ); }
                    if( 
strcmpkey "Sex" true ) == ) { val ini_GetValueData ); PlayerInfo[playerid][pSex] = strvalval ); }
                    if( 
strcmpkey "Muted" true ) == ) { val ini_GetValueData ); PlayerInfo[playerid][pMuted] = strvalval ); }
                    if( 
strcmpkey "Respect" true ) == ) { val ini_GetValueData ); PlayerInfo[playerid][pExp] = strvalval ); }
                    if( 
strcmpkey "Money" true ) == ) { val ini_GetValueData ); PlayerInfo[playerid][pCash] = strvalval ); }
                    if( 
strcmpkey "Bank" true ) == ) { val ini_GetValueData ); PlayerInfo[playerid][pConta] = strvalval ); }
                    if( 
strcmpkey "Crimes" true ) == ) { val ini_GetValueData ); PlayerInfo[playerid][pCrimes] = strvalval ); }
                    if( 
strcmpkey "Kills" true ) == ) { val ini_GetValueData ); PlayerInfo[playerid][pKills] = strvalval ); }
                    if( 
strcmpkey "Deaths" true ) == ) { val ini_GetValueData ); PlayerInfo[playerid][pDeaths] = strvalval ); }
                    if( 
strcmpkey "Phonebook" true ) == ) { val ini_GetValueData ); PlayerInfo[playerid][pPhoneBook] = strvalval ); }
                    if( 
strcmpkey "LottoNr" true ) == ) { val ini_GetValueData ); PlayerInfo[playerid][pLottoNr] = strvalval ); }
                    if( 
strcmpkey "Fishes" true ) == ) { val ini_GetValueData ); PlayerInfo[playerid][pFishes] = strvalval ); }
                    if( 
strcmpkey "BiggestFish" true ) == ) { val ini_GetValueData ); PlayerInfo[playerid][pBiggestFish] = strvalval ); }
                    if( 
strcmpkey "Emprego" true ) == ) { val ini_GetValueData ); PlayerInfo[playerid][pEmprego] = strvalval ); }
                    if( 
strcmpkey "Paycheck" true ) == ) { val ini_GetValueData ); PlayerInfo[playerid][pSalario] = strvalval ); }
                    if( 
strcmpkey "HeadValue" true ) == ) { val ini_GetValueData ); PlayerInfo[playerid][pHeadValue] = strvalval ); }
                    if( 
strcmpkey "Jailed" true ) == ) { val ini_GetValueData ); PlayerInfo[playerid][pJailed] = strvalval ); }
                    if( 
strcmpkey "JailTime" true ) == ) { val ini_GetValueData ); PlayerInfo[playerid][pJailTime] = strvalval ); }
                    if( 
strcmpkey "Materiais" true ) == ) { val ini_GetValueData ); PlayerInfo[playerid][pMats] = strvalval ); }
                    if( 
strcmpkey "Maconha" true ) == ) { val ini_GetValueData ); PlayerInfo[playerid][pDrogas] = strvalval ); }
                    if( 
strcmpkey "Cocaina" true ) == ) { val ini_GetValueData ); PlayerInfo[playerid][pDrogas2] = strvalval ); }
                    if( 
strcmpkey "Crack" true ) == ) { val ini_GetValueData ); PlayerInfo[playerid][pDrogas3] = strvalval ); }
                    if( 
strcmpkey "Lider" true ) == ) { val ini_GetValueData ); PlayerInfo[playerid][pLider] = strvalval ); }
                    if( 
strcmpkey "Member" true ) == ) { val ini_GetValueData ); PlayerInfo[playerid][pMembro] = strvalval ); }
                    if( 
strcmpkey "Rank" true ) == ) { val ini_GetValueData ); PlayerInfo[playerid][pCargo] = strvalval ); }
                    if( 
strcmpkey "Char" true ) == ) { val ini_GetValueData ); PlayerInfo[playerid][pSkin] = strvalval ); }
                    if( 
strcmpkey "ContractTime" true ) == ) { val ini_GetValueData ); PlayerInfo[playerid][pContractTime] = strvalval ); }
                    if( 
strcmpkey "DetSkill" true ) == ) { val ini_GetValueData ); PlayerInfo[playerid][pDetSkill] = strvalval ); }
                    if( 
strcmpkey "SexSkill" true ) == ) { val ini_GetValueData ); PlayerInfo[playerid][pSexSkill] = strvalval ); }
                    if( 
strcmpkey "BoxSkill" true ) == ) { val ini_GetValueData ); PlayerInfo[playerid][pBoxSkill] = strvalval ); }
                    if( 
strcmpkey "LawSkill" true ) == ) { val ini_GetValueData ); PlayerInfo[playerid][pLawSkill] = strvalval ); }
                    if( 
strcmpkey "MechSkill" true ) == ) { val ini_GetValueData ); PlayerInfo[playerid][pMechSkill] = strvalval ); }
                    if( 
strcmpkey "NewsSkill" true ) == ) { val ini_GetValueData ); PlayerInfo[playerid][pNewsSkill] = strvalval ); }
                    if( 
strcmpkey "DrogasSkill" true ) == ) { val ini_GetValueData ); PlayerInfo[playerid][pDrogasSkill] = strvalval ); }
                    if( 
strcmpkey "CookSkill" true ) == ) { val ini_GetValueData ); PlayerInfo[playerid][pCookSkill] = strvalval ); }
                    if( 
strcmpkey "FishSkill" true ) == ) { val ini_GetValueData ); PlayerInfo[playerid][pFishSkill] = strvalval ); }
                    if( 
strcmpkey "pSHealth" true ) == ) { val ini_GetValueData ); PlayerInfo[playerid][pSHealth] = floatstrval ); }
                    if( 
strcmpkey "Team" true ) == ) { val ini_GetValueData ); PlayerInfo[playerid][pTeam] = strvalval ); }
                    if( 
strcmpkey "PhoneNr" true ) == ) { val ini_GetValueData ); PlayerInfo[playerid][pPnumber] = strvalval ); }
                    if( 
strcmpkey "House" true ) == ) { val ini_GetValueData ); PlayerInfo[playerid][pPHousekey] = strvalval ); }
                    if( 
strcmpkey "Bizz" true ) == ) { val ini_GetValueData ); PlayerInfo[playerid][pPbiskey] = strvalval ); }
                    if( 
strcmpkey "Pos_x" true ) == ) { val ini_GetValueData ); PlayerInfo[playerid][pPos_x] = floatstrval ); }
                    if( 
strcmpkey "Pos_y" true ) == ) { val ini_GetValueData ); PlayerInfo[playerid][pPos_y] = floatstrval ); }
                    if( 
strcmpkey "Pos_z" true ) == ) { val ini_GetValueData ); PlayerInfo[playerid][pPos_z] = floatstrval ); }
                    if( 
strcmpkey "CarLic" true ) == ) { val ini_GetValueData ); PlayerInfo[playerid][pCarLic] = strvalval ); }
                    if( 
strcmpkey "FlyLic" true ) == ) { val ini_GetValueData ); PlayerInfo[playerid][pFlyLic] = strvalval ); }
                    if( 
strcmpkey "BoatLic" true ) == ) { val ini_GetValueData ); PlayerInfo[playerid][pBoatLic] = strvalval ); }
                    if( 
strcmpkey "FishLic" true ) == ) { val ini_GetValueData ); PlayerInfo[playerid][pFishLic] = strvalval ); }
                    if( 
strcmpkey "GunLic" true ) == ) { val ini_GetValueData ); PlayerInfo[playerid][pGunLic] = strvalval ); }
                    if( 
strcmpkey "PayDay" true ) == ) { val ini_GetValueData ); PlayerInfo[playerid][pPayDay] = strvalval ); }
                    if( 
strcmpkey "CDPlayer" true ) == ) { val ini_GetValueData ); PlayerInfo[playerid][pCDPlayer] = strvalval ); }
                    if( 
strcmpkey "Wins" true ) == ) { val ini_GetValueData ); PlayerInfo[playerid][pWins] = strvalval ); }
                    if( 
strcmpkey "Loses" true ) == ) { val ini_GetValueData ); PlayerInfo[playerid][pLoses] = strvalval ); }
                    if( 
strcmpkey "AlcoholPerk" true ) == ) { val ini_GetValueData ); PlayerInfo[playerid][pAlcoholPerk] = strvalval ); }
                    if( 
strcmpkey "DrugPerk" true ) == ) { val ini_GetValueData ); PlayerInfo[playerid][pDrugPerk] = strvalval ); }
                    if( 
strcmpkey "MiserPerk" true ) == ) { val ini_GetValueData ); PlayerInfo[playerid][pMiserPerk] = strvalval ); }
                    if( 
strcmpkey "PainPerk" true ) == ) { val ini_GetValueData ); PlayerInfo[playerid][pPainPerk] = strvalval ); }
                    if( 
strcmpkey "TraderPerk" true ) == ) { val ini_GetValueData ); PlayerInfo[playerid][pTraderPerk] = strvalval ); }
                    if( 
strcmpkey "Tutorial" true ) == ) { val ini_GetValueData ); PlayerInfo[playerid][pTut] = strvalval ); }
                    if( 
strcmpkey "Avisos" true ) == ) { val ini_GetValueData ); PlayerInfo[playerid][pWarns] = strvalval ); }
                    if( 
strcmpkey "Married" true ) == ) { val ini_GetValueData ); PlayerInfo[playerid][pMarried] = strvalval ); }
                    if( 
strcmpkey "MarriedTo" true ) == ) { val ini_GetValueData ); strmid(PlayerInfo[playerid][pMarriedTo], val0strlen(val)-1255); }
                    if( 
strcmpkey "Spawn" true ) == ) { val ini_GetValueData ); PlayerInfo[playerid][pSpawn] = strvalval ); }
                    if( 
strcmpkey "SafeMaconha" true ) == ) { val ini_GetValueData ); PlayerInfo[playerid][pSafeDrogas] = strvalval ); }
                    if( 
strcmpkey "SafeCocaina" true ) == ) { val ini_GetValueData ); PlayerInfo[playerid][pSafeDrogas2] = strvalval ); }
                    if( 
strcmpkey "SafeCrack" true ) == ) { val ini_GetValueData ); PlayerInfo[playerid][pSafeDrogas3] = strvalval ); }
                    if( 
strcmpkey "NivelProcurado" true ) == ) { val ini_GetValueData ); WantedPoints[playerid] = strvalval ); }
                    if( 
strcmpkey "SafeMateriais" true ) == ) { val ini_GetValueData ); PlayerInfo[playerid][psMats] = strvalval ); }
                    if( 
strcmpkey "Luta" true ) == ) { val ini_GetValueData ); PlayerInfo[playerid][pLuta] = strvalval ); }
                    if( 
strcmpkey "Dorgado" true ) == ) { val ini_GetValueData ); PlayerInfo[playerid][pDorgado] = strvalval ); }
                    if( 
strcmpkey "Dorgado2" true ) == ) { val ini_GetValueData ); PlayerInfo[playerid][pDorgado2] = strvalval ); }
                    if( 
strcmpkey "Doenca" true ) == ) { val ini_GetValueData ); PlayerInfo[playerid][pDoenca] = strvalval ); }
                    if( 
strcmpkey "Creditos" true ) == ) { val ini_GetValueData ); PlayerInfo[playerid][pCreditos] = strvalval ); }
                    if( 
strcmpkey "LU" true ) == ) { val ini_GetValueData ); strmid(PlayerInfo[playerid][pLastLogin], val0strlen(val)-1255); }
                    if( 
strcmpkey "Gun1" true ) == ) { val ini_GetValueData ); PlayerInfo[playerid][pGun1] = strvalval ); }
                    if( 
strcmpkey "Gun2" true ) == ) { val ini_GetValueData ); PlayerInfo[playerid][pGun2] = strvalval ); }
                    if( 
strcmpkey "Gun3" true ) == ) { val ini_GetValueData ); PlayerInfo[playerid][pGun3] = strvalval ); }
                    if( 
strcmpkey "Gun4" true ) == ) { val ini_GetValueData ); PlayerInfo[playerid][pGun4] = strvalval ); }
                    if( 
strcmpkey "Gun5" true ) == ) { val ini_GetValueData ); PlayerInfo[playerid][pGun5] = strvalval ); }
                    if( 
strcmpkey "Gun6" true ) == ) { val ini_GetValueData ); PlayerInfo[playerid][pGun6] = strvalval ); }
                    if( 
strcmpkey "Gun7" true ) == ) { val ini_GetValueData ); PlayerInfo[playerid][pGun7] = strvalval ); }
                    if( 
strcmpkey "Gun8" true ) == ) { val ini_GetValueData ); PlayerInfo[playerid][pGun8] = strvalval ); }
                    if( 
strcmpkey "Gun9" true ) == ) { val ini_GetValueData ); PlayerInfo[playerid][pGun9] = strvalval ); }
                    if( 
strcmpkey "Gun10" true ) == ) { val ini_GetValueData ); PlayerInfo[playerid][pGun10] = strvalval ); }
                    if( 
strcmpkey "Gun11" true ) == ) { val ini_GetValueData ); PlayerInfo[playerid][pGun11] = strvalval ); }
                    if( 
strcmpkey "Gun12" true ) == ) { val ini_GetValueData ); PlayerInfo[playerid][pGun12] = strvalval ); }
                    if( 
strcmpkey "Ammo1" true ) == ) { val ini_GetValueData ); PlayerInfo[playerid][pAmmo1] = strvalval ); }
                    if( 
strcmpkey "Ammo2" true ) == ) { val ini_GetValueData ); PlayerInfo[playerid][pAmmo2] = strvalval ); }
                    if( 
strcmpkey "Ammo3" true ) == ) { val ini_GetValueData ); PlayerInfo[playerid][pAmmo3] = strvalval ); }
                    if( 
strcmpkey "Ammo4" true ) == ) { val ini_GetValueData ); PlayerInfo[playerid][pAmmo4] = strvalval ); }
                    if( 
strcmpkey "Ammo5" true ) == ) { val ini_GetValueData ); PlayerInfo[playerid][pAmmo5] = strvalval ); }
                    if( 
strcmpkey "Ammo6" true ) == ) { val ini_GetValueData ); PlayerInfo[playerid][pAmmo6] = strvalval ); }
                    if( 
strcmpkey "Ammo7" true ) == ) { val ini_GetValueData ); PlayerInfo[playerid][pAmmo7] = strvalval ); }
                    if( 
strcmpkey "Ammo8" true ) == ) { val ini_GetValueData ); PlayerInfo[playerid][pAmmo8] = strvalval ); }
                    if( 
strcmpkey "Ammo9" true ) == ) { val ini_GetValueData ); PlayerInfo[playerid][pAmmo9] = strvalval ); }
                    if( 
strcmpkey "Ammo10" true ) == ) { val ini_GetValueData ); PlayerInfo[playerid][pAmmo10] = strvalval ); }
                    if( 
strcmpkey "Ammo11" true ) == ) { val ini_GetValueData ); PlayerInfo[playerid][pAmmo11] = strvalval ); }
                    if( 
strcmpkey "Ammo12" true ) == ) { val ini_GetValueData ); PlayerInfo[playerid][pAmmo12] = strvalval ); }
                    
logouagora[playerid] = 1;
                    
CheckOwner(playerid);
                    
//CheckAdmin(playerid);
                    
CheckOwnerb(playerid);
                    
CheckOwnerh(playerid);
                    
//CheckVip(playerid);
                
}//end while
                
fclose(UserFile);//close the file after everything has been read in the while
        

Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)