[Ajuda] Servidor desligando !!!
#3

Quote:
Originally Posted by ViniBorn
Посмотреть сообщение
Vale a pena tentar atualizar.

Por que exatamente vocк nгo consegue?
Bom o tуpico ta inglкs e eu to com dificuldade pra intender atй traduzindo eu tentei fazer uma vez,
ai nгo deu certo ai eu desistir -.-".

perceber um negocio aqui no meu windows tentei ligar ele pela бrea de trabalho deu erro na plugin "CronServe"
ai eu pensei pode ser isto tambйm que esta dando erro !

[BVJ-17:02:51] [debug] Server crashed while executing BVJ24.amx
[BVJ-17:02:51] [debug] AMX backtrace:
[BVJ-17:02:51] [debug] #0 native fwrite () [004056e0] from samp-server.exe
[BVJ-17:02:51] [debug] #1 0000ae14 in ?? (0x000dc8c0, 0x006518f0, 0x006981f0) from BVJ24.amx
[BVJ-17:02:51] [debug] #2 0000b058 in ?? (0x000dc8c0, 0x006518f0, 0x00000000) from BVJ24.amx
[BVJ-17:02:51] [debug] #3 001660ec in public CronServe () from BVJ24.amx
[BVJ-17:02:51] [debug] Native backtrace:
[BVJ-17:02:51] [debug] #0 77992272 in ?? () from C:\Windows\SysWOW64\ntdll.dll
[BVJ-17:02:51] [debug] #1 004940b0 in ?? () from samp-server.exe
[BVJ-17:02:51] [debug] #2 0040531e in ?? () from samp-server.exe

PHP код:
public CronServe()
{
    new 
string[256];
    
minu++;
    if(
horas == 0)
    {
        
SetWorldTime(0);
        
Faculdade2 0;
    }
    if(
minu >= 59)
    {
        
minu 0;
        
horas++;
        
SetWorldTime(horas);
    }
    if(
horas 23)
    {
        
horas 0;
    }
    if(
Relogio != Text:INVALID_TEXT_DRAW)
    {
        
format(string25"~w~%02d~g~:~w~%02d"horasminu);
        
TextDrawSetString(Relogiostring);
    }
    if(
horas == && minu == 00)
    {
        
Faculdade2 1;
        
MoveDynamicObject(ObjectsFix[21], 1214.0789794922, -1842.518676757820.4156742095954.0);
        
MoveDynamicObject(ObjectsFix[22], 1269.8895263672, -1842.537963867220.5111808776864.0);
        
GameTextForAll("~w~Faculdade ~p~Aberta!"60001);
    }
    if(
horas == 12 && minu == 00)
    {
        
Faculdade2 0;
        
MoveDynamicObject(ObjectsFix[21], 1213.7843017578, -1842.478271484415.1562042236334.0);
        
MoveDynamicObject(ObjectsFix[22], 1270.2001953125, -1842.579833984415.1562042236334.0);
        
GameTextForAll("~w~Faculdade ~p~Fechada!"60001);
    }
    if(
horas == 14 && minu == 00)
    {
        
Faculdade2 1;
        
MoveDynamicObject(ObjectsFix[21], 1214.0789794922, -1842.518676757820.4156742095954.0);
        
MoveDynamicObject(ObjectsFix[22], 1269.8895263672, -1842.537963867220.5111808776864.0);
        
GameTextForAll("~w~Faculdade ~p~Aberta!"60001);
    }
    if(
horas == 17 && minu == 00)
    {
        
Faculdade2 0;
        
MoveDynamicObject(ObjectsFix[21], 1213.7843017578, -1842.478271484415.1562042236334.0);
        
MoveDynamicObject(ObjectsFix[22], 1270.2001953125, -1842.579833984415.1562042236334.0);
        
GameTextForAll("~w~Faculdade ~p~Fechada!"60001);
    }
    if(
horas == 21 && minu == 00)
    {
        
Faculdade2 1;
        
MoveDynamicObject(ObjectsFix[21], 1214.0789794922, -1842.518676757820.4156742095954.0);
        
MoveDynamicObject(ObjectsFix[22], 1269.8895263672, -1842.537963867220.5111808776864.0);
        
GameTextForAll("~w~Faculdade ~p~Aberta!"60001);
    }
    if(
horas == 24 && minu == 30)
    {
        
Faculdade2 0;
        
MoveDynamicObject(ObjectsFix[21], 1213.7843017578, -1842.478271484415.1562042236334.0);
        
MoveDynamicObject(ObjectsFix[22], 1270.2001953125, -1842.579833984415.1562042236334.0);
          
GameTextForAll("~w~Faculdade ~p~Fechada!"60001);
    }
    if(
horas == 15 && minu == 00)
    {
        print(
"Salбrio pago ao(s) empregado(s) online!");
        
Up();
        
GameTextForAll("~g~$ ~w~Pagamento ~g~$"60004);
    }
    
totalon 0;
    for(new 
0MAX_PLAYERSi++)
    {
        if(
IsPlayerConnected(i))
        {
            if(!
IsPlayerNPC(i))
            {
                if(
totalon == 0)
                {
                    
totalon 1;
                }
                else if(
totalon 0)
                {
                    
totalon++;
                }
            }
            if(
GetPlayerMoney(i) != GetPlayerGrana(i))
            {
                
ResetPlayerMoney(i);
                
GivePlayerMoney(iGetPlayerGrana(i));
            }
            
GetPlayerPos(iPlayerCurrentPos[0], PlayerCurrentPos[1], PlayerCurrentPos[2]);
            if(!
floatcmp(PlayerCurrentPos[0], PlayerLastPos[i][LastX]) && !floatcmp(PlayerCurrentPos[1], PlayerLastPos[i][LastY]))
            {
                
PlayerAfkTicks[i]++;
            }
            else
            {
                
PlayerAfkTicks[i] = 0;
            }
            
PlayerLastPos[i][LastX] = PlayerCurrentPos[0];
            
PlayerLastPos[i][LastY] = PlayerCurrentPos[1];
            
PlayerLastPos[i][LastZ] = PlayerCurrentPos[2];
            if(
PlayerAfkTicks[i] == MAX_IDLE_TIME*60 && PlayerInfo[i][Logged] == 1)
            {
                
AFK[i] = 1;
                
SetPlayerVirtualWorld(i1);
                
SetCameraBehindPlayer(i);
                
TogglePlayerControllable(i0);
                
TextDrawShowForPlayer(iAfkText);
                
TextDrawShowForPlayer(iAfkBackText);
                
format(stringsizeof(string), "%s estб ausente e foi impedido(a) de upar!"GetPlayerNameEx(i));
                
SendClientMessageToAll(0xFF9595AAstring);
            }
            
format(filesizeof(file), PASTA_CONTASGetPlayerNameEx(i));
            if(
dini_Exists(file))
            {
                new 
Float:health;
                
GetPlayerHealth(ihealth);
                
dini_IntSet(file"Matou"matou[i]);
                
dini_IntSet(file"Morreu"morreu[i]);
                if(
dini_Int(file"usoudroga") == 1)
                {
                    
SetPlayerHealth(ihealth-2);
                }
                if(
dini_Int(file"Level") > MAX_PLAYER_LEVEL-1)
                {
                    
dini_IntSet(file"Level"MAX_PLAYER_LEVEL);
                }
                if(
dini_Int(file"Faculdade") > MAX_PLAYER_ESTUDO-1)
                {
                    
dini_IntSet(file"Faculdade"MAX_PLAYER_ESTUDO);
                }
                if(
pAdmin[i] > 0)
                {
                    
dini_IntSet(file"Admin"pAdmin[i]);
                }
                if(
pMod[i] > 0)
                {
                    
dini_IntSet(file"Moderadortd"pMod[i]);
                }
            }
        }
    }
    return 
1;

Reply


Messages In This Thread
Servidor desligando !!! - by Dieguinho - 17.07.2014, 19:15
Re: Servidor desligando !!! - by ViniBorn - 17.07.2014, 19:50
Re: Servidor desligando !!! - by Dieguinho - 17.07.2014, 19:57
Re: Servidor desligando !!! - by ViniBorn - 17.07.2014, 21:49
Re: Servidor desligando !!! - by PT - 17.07.2014, 21:56
Re: Servidor desligando !!! - by Schocc - 17.07.2014, 21:56
Re: Servidor desligando !!! - by Dieguinho - 17.07.2014, 21:57
Re: Servidor desligando !!! - by Dieguinho - 17.07.2014, 22:07
Re: Servidor desligando !!! - by ViniBorn - 18.07.2014, 03:41
Re: Servidor desligando !!! - by Dieguinho - 18.07.2014, 14:55

Forum Jump:


Users browsing this thread: 1 Guest(s)