[Ajuda] Servidor SAMP fechando do nada
#1

Tenho uma host em que meu servidor funciona normalmente, porйm, para fazer os testes antes de upar a GM, eu testo em um servidor local, ou seja, simplesmente abro o samp-server.exe e entro com o IP 127.0.0.1
Quando estou no servidor local, ele cai em aproximadamente 10 minutos de jogo, jб no host, ele nгo cai. O que pode ser?

server_log.txt
Quote:

[23:53:02] RCON (In-Game): Player #0 (NSL_Fugitiv3) has logged in.
[23:53:17] sscanf warning: Strings without a length are deprecated, please add a destination size.
[23:54:01] [debug] Server crashed while executing dten.amx
[23:54:01] [debug] AMX backtrace:
[23:54:01] [debug] #0 native fwrite () [004056e0] from samp-server.exe
[23:54:01] [debug] #1 0000b728 in ?? () from dten.amx
[23:54:01] [debug] #2 0000b998 in ?? () from dten.amx
[23:54:01] [debug] #3 000fbebc in public CronServe () from dten.amx
[23:54:01] [debug] System backtrace:
[23:54:01] [debug] #0 00498bb8 in ?? () from C:\Users\Pichau\Desktop\[BSM] - Brasil Sub Mundo\samp-server.exe
[23:54:01] [debug] #1 0040531e in ?? () from C:\Users\Pichau\Desktop\[BSM] - Brasil Sub Mundo\samp-server.exe

crashinfo.txt
Quote:

--------------------------
SA-MP Server: 0.3.7-R2

Exception At Address: 0x0040531E Module: (samp-server.exe)

Registers:
EAX: 0x00000024 EBX: 0x00000053 ECX: 0x00000020 EDX: 0x0025F000
ESI: 0x00000000 EDI: 0x04421FD0 EBP: 0x00000000 ESP: 0x0019FC8C
EFLAGS: 0x00010202

Stack:
+0000: 0x00000053 0x00000000 0x04421FC4 0x0019FCB4
+0010: 0x00000040 0x0040575F 0x00000001 0x023F8860
+0020: 0x0293A820 0x00000086 0x0019FD14 0x004010B6
+0030: 0x0293A820 0x04421FD0 0x00000001 0x6E8BBF13
+0040: 0x0293A820 0x00000040 0x0019FD88 0x04421FC4
+0050: 0x6E8D4588 0x023F5ED8 0x0019FCF4 0x039F0BC4
+0060: 0x0293A820 0x00000000 0x00000000 0x0293A820
+0070: 0x00903B00 0x0000B728 0x00000040 0x6E8CAE4B
+0080: 0xFFFFFFFF 0x0019FD28 0x0019FD28 0x6E8C3C32
+0090: 0x00000040 0x0019FD88 0x04421FC4 0x0019FD80
+00A0: 0x6E8C6076 0x0293A820 0x00000040 0x0019FD88
+00B0: 0x04421FC4 0x00000016 0x023F8860 0x00000000
+00C0: 0x0013943C 0x039E3020 0x00000000 0x00000000
+00D0: 0x00000000 0x039E549C 0x00900344 0x00904340
+00E0: 0x03B1E8D8 0x00900344 0x00903B00 0x00900740
+00F0: 0x009036EC 0x0019FDCC 0x6E8BC05A 0x00000000
+0100: 0x0019FE10 0x00000016 0x6E8D4588 0x023F6158
+0110: 0x0019FDAC 0x00000000 0x00000000 0x0293A820
+0120: 0x00000001 0x0293A820 0x00000000 0x00000008
+0130: 0x00000016 0x6E8CAE4B 0xFFFFFFFF 0x0019FDDC

--------------------------

Loaded Modules:
samp-server.exe A: 0x00400000 - 0x00519000 (C:\Users\Pichau\Desktop\[BSM] - Brasil Sub Mundo\samp-server.exe)
ntdll.dll A: 0x77950000 - 0x77ACB000 (C:\Windows\SYSTEM32\ntdll.dll)
KERNEL32.DLL A: 0x77810000 - 0x778F0000 (C:\Windows\SYSTEM32\KERNEL32.DLL)
KERNELBASE.dll A: 0x75660000 - 0x757DE000 (C:\Windows\SYSTEM32\KERNELBASE.dll)
SHELL32.dll A: 0x75800000 - 0x76BFE000 (C:\Windows\SYSTEM32\SHELL32.dll)
msvcrt.dll A: 0x772E0000 - 0x7739E000 (C:\Windows\SYSTEM32\msvcrt.dll)
cfgmgr32.dll A: 0x74D60000 - 0x74D97000 (C:\Windows\SYSTEM32\cfgmgr32.dll)
windows.storage.dll A: 0x74DC0000 - 0x752BA000 (C:\Windows\SYSTEM32\windows.storage.dll)
combase.dll A: 0x77000000 - 0x771BD000 (C:\Windows\SYSTEM32\combase.dll)
RPCRT4.dll A: 0x752C0000 - 0x7536D000 (C:\Windows\SYSTEM32\RPCRT4.dll)
SspiCli.dll A: 0x74680000 - 0x7469E000 (C:\Windows\SYSTEM32\SspiCli.dll)
CRYPTBASE.dll A: 0x74670000 - 0x7467A000 (C:\Windows\SYSTEM32\CRYPTBASE.dll)
bcryptPrimitives.dll A: 0x749D0000 - 0x74A28000 (C:\Windows\SYSTEM32\bcryptPrimitives.dll)
sechost.dll A: 0x76C00000 - 0x76C44000 (C:\Windows\SYSTEM32\sechost.dll)
advapi32.dll A: 0x76EA0000 - 0x76F1B000 (C:\Windows\SYSTEM32\advapi32.dll)
shlwapi.dll A: 0x778F0000 - 0x77935000 (C:\Windows\SYSTEM32\shlwapi.dll)
GDI32.dll A: 0x75510000 - 0x7565F000 (C:\Windows\SYSTEM32\GDI32.dll)
USER32.dll A: 0x74A90000 - 0x74BD7000 (C:\Windows\SYSTEM32\USER32.dll)
kernel.appcore.dll A: 0x747E0000 - 0x747EC000 (C:\Windows\SYSTEM32\kernel.appcore.dll)
shcore.dll A: 0x76F20000 - 0x76FAD000 (C:\Windows\SYSTEM32\shcore.dll)
powrprof.dll A: 0x76FB0000 - 0x76FF4000 (C:\Windows\SYSTEM32\powrprof.dll)
profapi.dll A: 0x74850000 - 0x7485F000 (C:\Windows\SYSTEM32\profapi.dll)
WSOCK32.dll A: 0x64390000 - 0x64398000 (C:\Windows\SYSTEM32\WSOCK32.dll)
WINMM.dll A: 0x70CA0000 - 0x70CC4000 (C:\Windows\SYSTEM32\WINMM.dll)
WS2_32.dll A: 0x773A0000 - 0x773FF000 (C:\Windows\SYSTEM32\WS2_32.dll)
WINMMBASE.dll A: 0x00AD0000 - 0x00AF3000 (C:\Windows\SYSTEM32\WINMMBASE.dll)
IMM32.DLL A: 0x76C50000 - 0x76C7B000 (C:\Windows\SYSTEM32\IMM32.DLL)
MSVCP100.dll A: 0x6E830000 - 0x6E899000 (C:\Users\USUARIO\Desktop\NSL\MSVCP100.dll)
MSVCR100.dll A: 0x6E770000 - 0x6E82F000 (C:\Users\USUARIO\Desktop\NSL\MSVCR100.dll)
MapAndreas.DLL A: 0x6F5B0000 - 0x6F5C7000 (C:\Users\USUARIO\Desktop\NSL\plugins\MapAndreas.D LL)
Whirlpool.DLL A: 0x10000000 - 0x1000C000 (C:\Users\USUARIO\Desktop\NSL\plugins\Whirlpool.DL L)
MSVCR80.dll A: 0x6E6D0000 - 0x6E76B000 (C:\Windows\WinSxS\x86_microsoft.vc80.crt_1fc8b3b9 a1e18e3b_8.0.50727.9193_none_d09188224426efcd\MSVC R80.dll)
sscanf.DLL A: 0x02370000 - 0x0237C000 (C:\Users\USUARIO\Desktop\[NSL\plugins\sscanf.DLL)
streamer.DLL A: 0x6E690000 - 0x6E6CE000 (C:\Users\USUARIO\Desktop\NSL\plugins\streamer.DLL )
CTime.DLL A: 0x6E670000 - 0x6E68D000 (C:\Users\USUARIO\Desktop\NSL\plugins\CTime.DLL)
MSVCR100D.dll A: 0x6E500000 - 0x6E66A000 (C:\Users\USUARIO\Desktop\NSL\MSVCR100D.dll)
mswsock.dll A: 0x73B20000 - 0x73B6F000 (C:\Windows\system32\mswsock.dll)
napinsp.dll A: 0x6B0D0000 - 0x6B0E2000 (C:\Windows\system32\napinsp.dll)
pnrpnsp.dll A: 0x6B0B0000 - 0x6B0C6000 (C:\Windows\system32\pnrpnsp.dll)
NLAapi.dll A: 0x6B090000 - 0x6B0A4000 (C:\Windows\system32\NLAapi.dll)
DNSAPI.dll A: 0x718E0000 - 0x71964000 (C:\Windows\SYSTEM32\DNSAPI.dll)
NSI.dll A: 0x77940000 - 0x77947000 (C:\Windows\SYSTEM32\NSI.dll)
winrnr.dll A: 0x6B080000 - 0x6B08B000 (C:\Windows\System32\winrnr.dll)
IPHLPAPI.DLL A: 0x742D0000 - 0x742FF000 (C:\Windows\SYSTEM32\IPHLPAPI.DLL)
bcrypt.dll A: 0x74530000 - 0x7454B000 (C:\Windows\SYSTEM32\bcrypt.dll)
rasadhlp.dll A: 0x71880000 - 0x71888000 (C:\Windows\System32\rasadhlp.dll)
uxtheme.dll A: 0x713B0000 - 0x71425000 (C:\Windows\system32\uxtheme.dll)
tv_w32.dll A: 0x6FE30000 - 0x6FE71000 (C:\Program Files (x86)\TeamViewer\tv_w32.dll)
VERSION.dll A: 0x745C0000 - 0x745C8000 (C:\Windows\SYSTEM32\VERSION.dll)
COMCTL32.dll A: 0x6FCC0000 - 0x6FD52000 (C:\Windows\WinSxS\x86_microsoft.windows.common-controls_6595b64144ccf1df_5.82.10586.0_none_811bc0 006c44242b\COMCTL32.dll)
PROPSYS.dll A: 0x723C0000 - 0x7250B000 (C:\Windows\SYSTEM32\PROPSYS.dll)
OLEAUT32.dll A: 0x75370000 - 0x75402000 (C:\Windows\SYSTEM32\OLEAUT32.dll)

Desde jб, obrigado pela atenзгo.
Reply
#2

Possivelmente estб faltando alguma pasta no scriptfiles

mostre a callback CronServe ()
Reply
#3

Quote:
Originally Posted by Glederson_dom
Посмотреть сообщение
Possivelmente estб faltando alguma pasta no scriptfiles

mostre a callback CronServe ()
** EDIT
Vi que, dentro do arquivo do meu usuбrio nгo tem uma das variбveis (й o nome correto?).

Quote:

if(dini_Int(file, "usoudroga") == 1)

Nгo hб "usoudroga" no meu arquivo. Pode ser isso?

Public CronServe

Quote:

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;
}
format(string, 25, "~w~%02d~g~:~w~%02d", horas, minu);
TextDrawSetString(Relogio, string);

// ================================== Faculdade ====================================
if(horas == 9 && minu == 00)
{
Faculdade2 = 1;
MoveDynamicObject(ObjectsFix[21], 1214.0789794922, -1842.5186767578, 20.415674209595, 4.0);
MoveDynamicObject(ObjectsFix[22], 1269.8895263672, -1842.5379638672, 20.511180877686, 4.0);
GameTextForAll("~w~Faculdade ~p~Aberta!", 6000, 1);
}
if(horas == 12 && minu == 00)
{
Faculdade2 = 0;
MoveDynamicObject(ObjectsFix[21], 1213.7843017578, -1842.4782714844, 15.156204223633, 4.0);
MoveDynamicObject(ObjectsFix[22], 1270.2001953125, -1842.5798339844, 15.156204223633, 4.0);
GameTextForAll("~w~Faculdade ~p~Fechada!", 6000, 1);
}
// -------
if(horas == 14 && minu == 00)
{
Faculdade2 = 1;
MoveDynamicObject(ObjectsFix[21], 1214.0789794922, -1842.5186767578, 20.415674209595, 4.0);
MoveDynamicObject(ObjectsFix[22], 1269.8895263672, -1842.5379638672, 20.511180877686, 4.0);
GameTextForAll("~w~Faculdade ~p~Aberta!", 6000, 1);
}
if(horas == 17 && minu == 00)
{
Faculdade2 = 0;
MoveDynamicObject(ObjectsFix[21], 1213.7843017578, -1842.4782714844, 15.156204223633, 4.0);
MoveDynamicObject(ObjectsFix[22], 1270.2001953125, -1842.5798339844, 15.156204223633, 4.0);
GameTextForAll("~w~Faculdade ~p~Fechada!", 6000, 1);
}
// -------
if(horas == 21 && minu == 00)
{
Faculdade2 = 1;
MoveDynamicObject(ObjectsFix[21], 1214.0789794922, -1842.5186767578, 20.415674209595, 4.0);
MoveDynamicObject(ObjectsFix[22], 1269.8895263672, -1842.5379638672, 20.511180877686, 4.0);
GameTextForAll("~w~Faculdade ~p~Aberta!", 6000, 1);
}
if(horas == 24 && minu == 30)
{
Faculdade2 = 0;
MoveDynamicObject(ObjectsFix[21], 1213.7843017578, -1842.4782714844, 15.156204223633, 4.0);
MoveDynamicObject(ObjectsFix[22], 1270.2001953125, -1842.5798339844, 15.156204223633, 4.0);
GameTextForAll("~w~Faculdade ~p~Fechada!", 6000, 1);
}
// Salбrio
if(horas == 15 && minu == 00)
{
print("Salбrio pago ao(s) empregado(s) online!");
Up();
}

for(new i = 0; i < MAX_PLAYERS; i++)
{
if(IsPlayerConnected(i))
{
if(GetPlayerMoney(i) != GetPlayerGrana(i))
{
ResetPlayerMoney(i);
GivePlayerMoney(i, GetPlayerGrana(i));
}

#if !defined AntiCheatUser
GetPlayerPos(i, PlayerCurrentPos[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*360 && PlayerInfo[i][Logged] == 1)
{
AFK[i] = 1;
SetPlayerVirtualWorld(i, 1);
SetCameraBehindPlayer(i);
TogglePlayerControllable(i, 0);
TextDrawShowForPlayer(i, AfkText);
TextDrawShowForPlayer(i, AfkBackText);
format(string, sizeof(string), "%s estб ausente e foi impedido(a) de upar!", PlayerName(i));
SendClientMessageToAll(0xFF9595AA, string);
}
#endif

format(file, sizeof(file), PASTA_CONTAS, PlayerName(i));
if(dini_Exists(file))
{
new Float:health;
GetPlayerHealth(i, health);
dini_IntSet(file, "Matou", matou[i]);
dini_IntSet(file, "Morreu", morreu[i]);
if(dini_Int(file, "usoudroga") == 1)
{
SetPlayerHealth(i, health-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]);
}
}
}
}
return 1;
}

Reply
#4

Tamanho da string muito maior do que o necessбrio, tenta diminuir pra 128.

Detalhe, o problema persiste devido a algum parвmetro invбlido ao sscanf ... sу notar o erro: sscanf warning: Strings without a length are deprecated, please add a destination size.
Reply
#5

Quote:
Originally Posted by pWesley
Посмотреть сообщение
Tamanho da string muito maior do que o necessбrio, tenta diminuir pra 128.

Detalhe, o problema persiste devido a algum parвmetro invбlido ao sscanf ... sу notar o erro: sscanf warning: Strings without a length are deprecated, please add a destination size.
Diminuн o tamanho da string para 128 e apуs uns 4 minutos de jogo o servidor fechou novamente, com o mesmo erro:

Desta vez nгo apareceu "sscanf warning: Strings without a length are deprecated, please add a destination size."

Quote:

[00:47:45] [debug] Server crashed while executing dten.amx
[00:47:45] [debug] AMX backtrace:
[00:47:45] [debug] #0 native fwrite () [004056e0] from samp-server.exe
[00:47:45] [debug] #1 0000b728 in ?? () from dten.amx
[00:47:45] [debug] #2 0000b998 in ?? () from dten.amx
[00:47:45] [debug] #3 000fbebc in public CronServe () from dten.amx
[00:47:45] [debug] System backtrace:
[00:47:45] [debug] #0 00498bb8 in ?? () from C:\Users\Pichau\Desktop\[BSM] - Brasil Sub Mundo\samp-server.exe
[00:47:45] [debug] #1 0040531e in ?? () from C:\Users\Pichau\Desktop\[BSM] - Brasil Sub Mundo\samp-server.exe

Reply
#6

mostre o que estб definido em PASTA_CONTAS
Reply
#7

Quote:
Originally Posted by Glederson_dom
Посмотреть сообщение
mostre o que estб definido em PASTA_CONTAS
Код:
#define PASTA_CONTAS "/Contas/%s.ini"
Reply
#8

Veja se no scriptfiles tem a pasta Contas
"scriptfiles/Contas"
PHP код:
#define PASTA_CONTAS "Contas/%s.ini" 
Reply
#9

Quote:
Originally Posted by Glederson_dom
Посмотреть сообщение
Veja se no scriptfiles tem a pasta Contas
"scriptfiles/Contas"
PHP код:
#define PASTA_CONTAS "Contas/%s.ini" 
Reply
#10

Vou fazer uma ultima pergunta para tentar te ajudar qual й o tamanho da variavel file?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)