PDA

View Full Version : Some Pro scripter plz solve this bug


MBilal
07/01/2015, 08:38 AM
Hello my dear friends
I want you all to Please help me to solve this bug!
because after some time it cause all players to crash!
Please help me thanks!

[02:00:16] [debug] Server crashed while executing new.amx
[02:00:16] [debug] AMX backtrace:
[02:00:16] [debug] #0 native fread () [00405770] from samp-server.exe
[02:00:16] [debug] #1 00084b6c in ?? () from new.amx
[02:00:16] [debug] #2 0002033c in public Streamer_OnGameModeInit () from new.amx
[02:00:16] [debug] #3 native CallLocalFunction () [00472ef0] from samp-server.exe
[02:00:16] [debug] #4 0001750c in public Itter_OnGameModeInit () from new.amx
[02:00:16] [debug] #5 native CallLocalFunction () [00472ef0] from samp-server.exe
[02:00:16] [debug] #6 00016228 in public SSCANF_OnGameModeInit () from new.amx
[02:00:16] [debug] #7 native CallLocalFunction () [00472ef0] from samp-server.exe
[02:00:16] [debug] #8 00010154 in ?? () from new.amx
[02:00:16] [debug] #9 00004e80 in public ScriptInit_OnGameModeInit () from new.amx
[02:00:16] [debug] #10 000002b8 in public OnGameModeInit () from new.amx
[02:00:16] [debug] Native backtrace:
[02:00:16] [debug] #0 7795f592 in ?? () from C:\Windows\SYSTEM32\ntdll.dll
[02:00:16] [debug] #1 004940b0 in ?? () from E:\Setups\Sampz\samp-server.exe
[02:00:16] [debug] #2 004946e0 in ?? () from E:\Setups\Sampz\samp-server.exe
[02:00:16] [debug] #3 00404f14 in ?? () from E:\Setups\Sampz\samp-server.exe

Divergent
07/01/2015, 09:25 AM
Download nativechecker, I think some of your plugins are out of date. Specifically your streamer seems to be out of date, but I could be wrong.

MBilal
07/01/2015, 11:01 AM
I tried that.. but didn't find any error for now
But it crash after some time.

Sawalha
07/01/2015, 11:14 AM
Can you show me the callback OnGameModeInit from "name.pwn" file?
note: CallLocalFunction crashes the server if it's passing an empty string. by SA:MP wiki.
CallLocalFunction is used to call a function from your own pawn file (name.pwn) only. you may have left it empty like this:

CallLocalFunction(" ", "s", "text");

doesn't matter w/e is in, it does matter if there's a parameter string is empty / null.

MBilal
07/01/2015, 11:21 AM
LoadSettings();

PrintConfiguration();

LoadIllegalWeaps();
LoadForbiddenNicks();
LoadBadNickParts();
LoadBadWords();
LoadTeleports();

LTimer = SetTimer("PlayerCheker",1000,true);

foreach(Player, i)
OnPlayerConnect(i);


I only call this in Gamemodint

BroZeus
07/01/2015, 11:22 AM
I think so you are trying to fread() from a file that doesn't exist

Sawalha
07/01/2015, 11:43 AM
Show me how did you call it Bilal, i mean show me the ongamemodeinit callback.