Server Crashing on any command
#1

I bought a windows host samp server, the server is working correctly on my local host but when i uploaded all my data to my bought windows host and start the server, and entered command like /commands or any command, the server got crash.

Used crashdetect and the results are this.
Код:
[08:19:50] [debug] Server crashed while executing CnR.amx
[08:19:50] [debug] AMX backtrace:
[08:19:50] [debug] #0 native fclose () [004056f0] from samp-server.exe
[08:19:50] [debug] #1 0007d03c in ?? () from CnR.amx
[08:19:50] [debug] #2 00140444 in public OnPlayerCommandReceived () from CnR.amx
[08:19:50] [debug] #3 native CallLocalFunction () [00474110] from samp-server.exe
[08:19:50] [debug] #4 00003f20 in public OnPlayerCommandText () from CnR.amx
[08:19:50] [debug] System backtrace:
[08:19:50] [debug] #0 004056fd in ?? () from C:\TCAFiles\Users\shreyr\280\samp-server.exe
[08:19:50] [debug] #1 702e39e2 in ?? () from C:\TCAFiles\Users\shreyr\280\plugins\crashdetect.DLL
[08:19:50] [debug] #2 702e5e26 in ?? () from C:\TCAFiles\Users\shreyr\280\plugins\crashdetect.DLL
[08:19:50] [debug] #3 702dbf3f in ?? () from C:\TCAFiles\Users\shreyr\280\plugins\crashdetect.DLL
[08:19:50] [debug] #4 702e3a0e in ?? () from C:\TCAFiles\Users\shreyr\280\plugins\crashdetect.DLL
[08:19:50] [debug] #5 0047441e in ?? () from C:\TCAFiles\Users\shreyr\280\samp-server.exe
[08:19:50] [debug] #6 004010b6 in ?? () from C:\TCAFiles\Users\shreyr\280\samp-server.exe
[08:19:50] [debug] #7 702e39e2 in ?? () from C:\TCAFiles\Users\shreyr\280\plugins\crashdetect.DLL
[08:19:50] [debug] #8 702e5e26 in ?? () from C:\TCAFiles\Users\shreyr\280\plugins\crashdetect.DLL
[08:19:50] [debug] #9 702dbf3f in ?? () from C:\TCAFiles\Users\shreyr\280\plugins\crashdetect.DLL
[08:19:50] [debug] #10 702e3a0e in ?? () from C:\TCAFiles\Users\shreyr\280\plugins\crashdetect.DLL
[08:19:50] [debug] #11 0046dbc0 in ?? () from C:\TCAFiles\Users\shreyr\280\samp-server.exe
[08:19:50] [debug] #12 004528f0 in ?? () from C:\TCAFiles\Users\shreyr\280\samp-server.exe
[08:19:50] [debug] #13 702e3a0e in ?? () from C:\TCAFiles\Users\shreyr\280\plugins\crashdetect.DLL
[08:19:50] [debug] #14 0046e780 in ?? () from C:\TCAFiles\Users\shreyr\280\samp-server.exe
[08:19:50] [debug] #15 0049d629 in ?? () from C:\TCAFiles\Users\shreyr\280\samp-server.exe
[08:19:50] [debug] #16 0045b3aa in ?? () from C:\TCAFiles\Users\shreyr\280\samp-server.exe
[08:19:50] [debug] #17 758e14ab in ?? () from C:\Windows\syswow64\KERNELBASE.dll
[08:19:50] [debug] #18 758e14de in ?? () from C:\Windows\syswow64\KERNELBASE.dll
by the way my filterscript commands are working but not my gamemode commands working.
Using CNRSF script.

See the problem in this?
Код:
function GetINIString(file[], result[])
{
    new File:inifile, line[512];
    inifile = fopen(file, io_read);
    if(!inifile)
    {
        printf("Fatal Error: Couldn't open \"%s\"!", file);
        return 0;
    }
    while(fread(inifile, line)) format(result, sizeof(line), "%s", line);
    fclose(inifile);
    return 0;
}

function WriteNIString(file[], string[])
{
    new File:inifile;
    inifile = fopen(file, io_write);
    if(!inifile)
    {
        printf("Fatal Error: Couldn't open \"%s\"!", file);
        return 0;
    }
    fwrite(inifile, string);
    fclose(inifile);
    return 0;
}
So please solve my this problem.
Reply
#2

Use crashdetect to get the problem, that happens with all commands?
Reply
#3

Used it and the results are this.
Код:
[08:19:50] [debug] Server crashed while executing CnR.amx
[08:19:50] [debug] AMX backtrace:
[08:19:50] [debug] #0 native fclose () [004056f0] from samp-server.exe
[08:19:50] [debug] #1 0007d03c in ?? () from CnR.amx
[08:19:50] [debug] #2 00140444 in public OnPlayerCommandReceived () from CnR.amx
[08:19:50] [debug] #3 native CallLocalFunction () [00474110] from samp-server.exe
[08:19:50] [debug] #4 00003f20 in public OnPlayerCommandText () from CnR.amx
[08:19:50] [debug] System backtrace:
[08:19:50] [debug] #0 004056fd in ?? () from C:\TCAFiles\Users\shreyr\280\samp-server.exe
[08:19:50] [debug] #1 702e39e2 in ?? () from C:\TCAFiles\Users\shreyr\280\plugins\crashdetect.DLL
[08:19:50] [debug] #2 702e5e26 in ?? () from C:\TCAFiles\Users\shreyr\280\plugins\crashdetect.DLL
[08:19:50] [debug] #3 702dbf3f in ?? () from C:\TCAFiles\Users\shreyr\280\plugins\crashdetect.DLL
[08:19:50] [debug] #4 702e3a0e in ?? () from C:\TCAFiles\Users\shreyr\280\plugins\crashdetect.DLL
[08:19:50] [debug] #5 0047441e in ?? () from C:\TCAFiles\Users\shreyr\280\samp-server.exe
[08:19:50] [debug] #6 004010b6 in ?? () from C:\TCAFiles\Users\shreyr\280\samp-server.exe
[08:19:50] [debug] #7 702e39e2 in ?? () from C:\TCAFiles\Users\shreyr\280\plugins\crashdetect.DLL
[08:19:50] [debug] #8 702e5e26 in ?? () from C:\TCAFiles\Users\shreyr\280\plugins\crashdetect.DLL
[08:19:50] [debug] #9 702dbf3f in ?? () from C:\TCAFiles\Users\shreyr\280\plugins\crashdetect.DLL
[08:19:50] [debug] #10 702e3a0e in ?? () from C:\TCAFiles\Users\shreyr\280\plugins\crashdetect.DLL
[08:19:50] [debug] #11 0046dbc0 in ?? () from C:\TCAFiles\Users\shreyr\280\samp-server.exe
[08:19:50] [debug] #12 004528f0 in ?? () from C:\TCAFiles\Users\shreyr\280\samp-server.exe
[08:19:50] [debug] #13 702e3a0e in ?? () from C:\TCAFiles\Users\shreyr\280\plugins\crashdetect.DLL
[08:19:50] [debug] #14 0046e780 in ?? () from C:\TCAFiles\Users\shreyr\280\samp-server.exe
[08:19:50] [debug] #15 0049d629 in ?? () from C:\TCAFiles\Users\shreyr\280\samp-server.exe
[08:19:50] [debug] #16 0045b3aa in ?? () from C:\TCAFiles\Users\shreyr\280\samp-server.exe
[08:19:50] [debug] #17 758e14ab in ?? () from C:\Windows\syswow64\KERNELBASE.dll
[08:19:50] [debug] #18 758e14de in ?? () from C:\Windows\syswow64\KERNELBASE.dll
by the way my filterscript commands are working but not my gamemode commands working.
Using CNRSF script.

See the problem in this?
Код:
function GetINIString(file[], result[])
{
    new File:inifile, line[512];
    inifile = fopen(file, io_read);
    if(!inifile)
    {
        printf("Fatal Error: Couldn't open \"%s\"!", file);
        return 0;
    }
    while(fread(inifile, line)) format(result, sizeof(line), "%s", line);
    fclose(inifile);
    return 0;
}

function WriteNIString(file[], string[])
{
    new File:inifile;
    inifile = fopen(file, io_write);
    if(!inifile)
    {
        printf("Fatal Error: Couldn't open \"%s\"!", file);
        return 0;
    }
    fwrite(inifile, string);
    fclose(inifile);
    return 0;
}
Reply
#4

BUMP! Please solve my problem
Reply
#5

Use this

PHP код:
forward GetINIString(file[], result[], len_result);
public 
GetINIString(file[], result[], len_result)
{
    new 
File:inifile;
    
inifile fopen(fileio_read);
    if(!
inifile)
    {
        
printf("Fatal Error: Couldn't open \"%s\"!"file);
        return 
0;
    }
    while(
fread(inifileresult)) {
         
format(resultlen_result"%s"result);
    }
    
fclose(inifile);
    return 
1;
}
forward WriteNIString(file[], string[]);
public 
WriteNIString(file[], string[])
{
    new 
File:inifile;
    
inifile fopen(fileio_write);
    if(!
inifile)
    {
        
printf("Fatal Error: Couldn't open \"%s\"!"file);
        return 
0;
    }
    
fwrite(inifilestring);
    
fclose(inifile);
    return 
1;

Reply
#6

Quote:
Originally Posted by Logofero
Посмотреть сообщение
Use this

PHP код:
forward GetINIString(file[], result[], len_result);
public 
GetINIString(file[], result[], len_result)
{
    new 
File:inifile;
    
inifile fopen(fileio_read);
    if(!
inifile)
    {
        
printf("Fatal Error: Couldn't open \"%s\"!"file);
        return 
0;
    }
    while(
fread(inifileresult)) {
         
format(resultlen_result"%s"result);
    }
    
fclose(inifile);
    return 
1;
}
forward WriteNIString(file[], string[]);
public 
WriteNIString(file[], string[])
{
    new 
File:inifile;
    
inifile fopen(fileio_write);
    if(!
inifile)
    {
        
printf("Fatal Error: Couldn't open \"%s\"!"file);
        return 
0;
    }
    
fwrite(inifilestring);
    
fclose(inifile);
    return 
1;

Still crashes.
You can come in this server and can use any commands.
91.121.164.164:8317

By the way samp inbuilt commands are working but not the gamemode commands.
Reply
#7

Quote:
Originally Posted by GuthiX
Посмотреть сообщение
Still crashes.
You can come in this server and can use any commands.
91.121.164.164:8317

By the way samp inbuilt commands are working but not the gamemode commands.
Crash could not because of the function, and you can avoid the mistake somewhere.

I went and checked did not find anything special, just a server crashes when I use /usec4
Look for errors in your commands
Reply
#8

If it was the file saving/loading section then when you connect it won't create your user files, when you reconnect it won't remember you logged on.

If those work, then it's elsewhere.


People need to stop instantly relying on the crashdetect plugin, especially when there's a fault somewhere, that you'd find faster by figuring out what is wrong, rather than waiting for someone to decode the info returned from the plugin.

A while back when it wasn't here, people knew how to debug scripts and track down issues, now everyone simply posts up the "oracles" report, which really, does nothing for me.



Now, /remove, and /gps work... Judging though that those, are filterscripts.

So not all commands, don't work.

How's it crashing WITHOUT the crashdetect crap... What's the actual log output when it does.
Reply
#9

Quote:
Originally Posted by Logofero
Посмотреть сообщение
Crash could not because of the function, and you can avoid the mistake somewhere.

I went and checked did not find anything special, just a server crashes when I use /usec4
Look for errors in your commands
Dude it is working on my local host perfect, all commands are working but not on the windows host, or on any host.
Please dude help me out.

Who will solve my this problem will get +rep from me.

Quote:
Originally Posted by Sew_Sumi
Посмотреть сообщение
If it was the file saving/loading section then when you connect it won't create your user files, when you reconnect it won't remember you logged on.

If those work, then it's elsewhere.


People need to stop instantly relying on the crashdetect plugin, especially when there's a fault somewhere, that you'd find faster by figuring out what is wrong, rather than waiting for someone to decode the info returned from the plugin.

A while back when it wasn't here, people knew how to debug scripts and track down issues, now everyone simply posts up the "oracles" report, which really, does nothing for me.



Now, /remove, and /gps work... Judging though that those, are filterscripts.

So not all commands, don't work.

How's it crashing WITHOUT the crashdetect crap... What's the actual log output when it does.
Dude seriously i don't understand you, please can you explain me how to fix and tell me the reason why it is not working on windows host and it working perfect on my local host?
Reply
#10

/gps, /remove are from seperate filterscripts?



And does the server log, give anything, without the crashdetect plugin? And when it crashes in this case, does it show anything at all?



On your gamemode, what plugins, and command processors are you using?


And chances are the reason your localhost (Your gaming PC) can run it, and your server (Server) can't, is more likely because of runtimes, that are on your computer, but aren't on the server.



1 line saying you can't understand me, yet asking me to fix it, isn't going to fix it... Fact is YOU need to start supplying information otherwise everyone is blind guessing, and you more than likely won't get it fixed due to that.


One thing to be aware of is not to fall victim to those who say "Gimme access to your script" and "I'll do it over teamviewer".
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)