Server Crashes all the time
#1

PHP код:
[15:12:28Incoming connection84.237.236.83:49315 id0
[15:12:28] [debugRun time error 20"Invalid index parameter (bad entry point)"
[15:12:29] [joinFernando_Ortega has joined the server (0:84.237.236.83)
[
15:12:29] [debugServer crashed while executing RPGMLvRP.amx
[15:12:29] [debugAMX 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] [debugNative 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
Reply
#2

Does it even load or crashes all the time before startup ?
Reply
#3

Server is working right for some time and then this error and server just closes.

Windows 2008 Server R2
Reply
#4

The script is I guess not compiled perfectly.
Reply
#5

Does it crash when you join the server ?
Reply
#6

Quote:
Originally Posted by AberKane
Посмотреть сообщение
Does it crash when you join the server ?
No it doesn't.
Reply
#7

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.
Reply
#8

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], unbandatebool:banip[32];
    
GetPlayerIp(playeridip32);
    
format(querysizeof(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() > 0ban true;
    }
    else
    {
        
format(querysizeof(query), "DELETE FROM bans WHERE name = '%s'"sendername(playerid));
        
mysql_query(query);
    }
    
format(querysizeof(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(querysizeof(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(string384,"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),dataUBDay,UBHourwhobannedreason);

        
SPD(playeridD_NULLDIALOG_STYLE_MSGBOX"Banned"string"Aizvert""");
         
Kick(playerid);
    }
    
mysql_free_result();

Reply
#9

Can you post the MySQL logs please ?

EDIT : Btw, have you noticed that you variable is named
Код:
new vas[32],
Instead of
Код:
var[32],
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)