Server Crashes all the time - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Server (
https://sampforum.blast.hk/forumdisplay.php?fid=6)
+--- Forum: Server Support (
https://sampforum.blast.hk/forumdisplay.php?fid=19)
+--- Thread: Server Crashes all the time (
/showthread.php?tid=571891)
Server Crashes all the time -
cuemur - 23.04.2015
PHP код:
[15:12:28] Incoming connection: 84.237.236.83:49315 id: 0
[15:12:28] [debug] Run time error 20: "Invalid index parameter (bad entry point)"
[15:12:29] [join] Fernando_Ortega has joined the server (0:84.237.236.83)
[15:12:29] [debug] Server crashed while executing RPGMLvRP.amx
[15:12:29] [debug] AMX backtrace:
[15:12:29] [debug] #0 native mysql_fetch_field_row () [01db6710] from mysql.dll
[15:12:29] [debug] #1 000f84ec in ?? (0x00000000) from RPGMLvRP.amx
[15:12:29] [debug] #2 00129d2c in public MP_OPC (0x00000000) from RPGMLvRP.amx
[15:12:29] [debug] #3 native CallLocalFunction () [00473830] from samp-server.exe
[15:12:29] [debug] #4 0000ce5c in public SSCANF_OnPlayerConnect (0x00000000) from RPGMLvRP.amx
[15:12:29] [debug] #5 000007d8 in public OnPlayerConnect (0x00000000) from RPGMLvRP.amx
[15:12:29] [debug] Native backtrace:
[15:12:29] [debug] #0 7413b9f0 in ?? () from C:\Windows\WinSxS\x86_microsoft.vc90.crt_1fc8b3b9a1e18e3b_9.0.30729.4940_none_50916076bcb9a742\MSVCR90.dll
[15:12:29] [debug] #1 01db9abe in ?? () from D:\RPGMGM\plugins\mysql.dll
[15:12:29] [debug] #2 01db67e3 in ?? () from D:\RPGMGM\plugins\mysql.dll
[15:12:29] [debug] #3 004010b6 in ?? () from D:\RPGMGM\samp-server.exe
[15:12:29] [debug] #4 725e5f2a in ?? () from D:\RPGMGM\plugins\crashdetect.dll
[15:12:29] [debug] #5 725e822e in ?? () from D:\RPGMGM\plugins\crashdetect.dll
[15:12:29] [debug] #6 725dff6f in ?? () from D:\RPGMGM\plugins\crashdetect.dll
[15:12:29] [debug] #7 725e5f7a in ?? () from D:\RPGMGM\plugins\crashdetect.dll
[15:12:29] [debug] #8 71da51a7 in ?? () from D:\RPGMGM\plugins\streamer.dll
[15:12:29] [debug] #9 00473b3e in ?? () from D:\RPGMGM\samp-server.exe
[15:12:29] [debug] #10 004010b6 in ?? () from D:\RPGMGM\samp-server.exe
[15:12:29] [debug] #11 725e5f2a in ?? () from D:\RPGMGM\plugins\crashdetect.dll
[15:12:29] [debug] #12 725e822e in ?? () from D:\RPGMGM\plugins\crashdetect.dll
[15:12:29] [debug] #13 725dff6f in ?? () from D:\RPGMGM\plugins\crashdetect.dll
[15:12:29] [debug] #14 725e5f7a in ?? () from D:\RPGMGM\plugins\crashdetect.dll
[15:12:29] [debug] #15 71da51a7 in ?? () from D:\RPGMGM\plugins\streamer.dll
[15:12:29] [debug] #16 0046d180 in ?? () from D:\RPGMGM\samp-server.exe
[15:12:29] [debug] #17 004661df in ?? () from D:\RPGMGM\samp-server.exe
[15:12:29] [debug] #18 004957a6 in ?? () from D:\RPGMGM\samp-server.exe
[15:12:29] [debug] #19 77a2e023 in ?? () from C:\Windows\SysWOW64\ntdll.dll
[15:12:29] [debug] #20 761414ad in ?? () from C:\Windows\syswow64\kernel32.dll
[15:12:29] [debug] #21 00495861 in ?? () from D:\RPGMGM\samp-server.exe
[15:12:29] [debug] #22 00490bc4 in ?? () from D:\RPGMGM\samp-server.exe
[15:12:29] [debug] #23 458d5151 in ?? () from D:\RPGMGM\samp-server.exe
[15:12:29] [debug] #24 15ff50f8 in ?? () from D:\RPGMGM\samp-server.exe
[15:12:29] [debug] #25 004a80c4 in ?? () from D:\RPGMGM\samp-server.exe
Server LOG
Re: Server Crashes all the time -
AberKane - 23.04.2015
Does it even load or crashes all the time before startup ?
Re: Server Crashes all the time -
cuemur - 23.04.2015
Server is working right for some time and then this error and server just closes.
Windows 2008 Server R2
Re: Server Crashes all the time -
Nirzor - 23.04.2015
The script is I guess not compiled perfectly.
Re: Server Crashes all the time -
AberKane - 23.04.2015
Does it crash when you join the server ?
Re: Server Crashes all the time -
cuemur - 23.04.2015
Quote:
Originally Posted by AberKane
Does it crash when you join the server ?
|
No it doesn't.
Re: Server Crashes all the time -
AberKane - 23.04.2015
Check your "OnPlayerConnect" callback, check if the function "CallLocalFunction()" is taking an empty string, if it is then it should crash.
Or just post us the code here, a part of it.
Re: Server Crashes all the time -
cuemur - 23.04.2015
i found out is because of the bans. When someone gets banned and come back in server crashes.
PHP код:
stock CheckBanList(playerid)
{
new vas[32], unbandate, bool:ban, ip[32];
GetPlayerIp(playerid, ip, 32);
format(query, sizeof(query), "SELECT * FROM bans WHERE name = '%s'", sendername(playerid));
mysql_query(query);
mysql_store_result();
if(mysql_fetch_row_format(query))
{
mysql_get_field("unbandate", var); unbandate = strval(var);
if(unbandate - gettime() > 0) ban = true;
}
else
{
format(query, sizeof(query), "DELETE FROM bans WHERE name = '%s'", sendername(playerid));
mysql_query(query);
}
format(query, sizeof(query), "SELECT * FROM bans WHERE ip = '%s'", ip);
mysql_query(query);
mysql_store_result();
if(mysql_fetch_row_format(query))
{
mysql_get_field("unbandate", var); unbandate = strval(var);
if(unbandate - gettime() > 0)
{
ban = true;
}
else
{
format(query, sizeof(query), "DELETE FROM bans WHERE ip = '%s'", ip);
mysql_query(query);
}
}
if(ban == true)
{
convert((unbandate-gettime())*1000,UBMin,UBSec,UBMSec);
UBHour = UBMin/60;
UBMin = UBMin%60;
UBDay = UBHour/24;
UBHour = UBHour%24;
new data[16], whobanned[32], reason[32];
mysql_get_field("bandate", data);
mysql_get_field("unbandate", vas); unbandate = strval(vas);
mysql_get_field("whobanned", whobanned);
mysql_get_field("reason", reason);
if(UBMin == 59)
{
UBHour++;
}
if(UBHour == 23)
{
UBDay++;
UBHour = 0;
}
format(string, 384,"Jusu konts: %s{FFFFFF}\n\
Statuss: {FF9900}Blokets{FFFFFF}\n\
Noblokets: %s\n\
Atblokets pec: %d dienam un %d stundam\n\
Blokeja: %s\n\
Blokeshanas iemesls: %s\n\
",sendername(playerid),data, UBDay,UBHour, whobanned, reason);
SPD(playerid, D_NULL, DIALOG_STYLE_MSGBOX, "Banned", string, "Aizvert", "");
Kick(playerid);
}
mysql_free_result();
}
Re: Server Crashes all the time -
AberKane - 23.04.2015
Can you post the MySQL logs please ?
EDIT : Btw, have you noticed that you variable is named Instead of