SA-MP Forums Archive
Help with a crash! - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Help with a crash! (/showthread.php?tid=660135)



Help with a crash! - m1kas - 25.10.2018

Hello, so I've recently launched a server with a couple of players (around 20) for testing. I came back after a little while after launching the server, and came back to this;

Quote:

[2018/10/25 20:26:28] [debug] Server crashed while executing ptfreeroam.amx
[2018/10/25 20:26:28] [debug] AMX backtrace:
[2018/10/25 20:26:28] [debug] #0 0000006c in ?? (... <27 arguments>) at <unknown file>:0
[2018/10/25 20:26:28] [debug] #1 00000068 in public OnDialogResponse () at <unknown file>:0

I tried to fix it myself, but it doesn't even show me where the error happened, and noone reported anything to me. Please help!


Re: Help with a crash! - KinderClans - 25.10.2018

Paste your OnDialogResponse.


Re: Help with a crash! - m1kas - 25.10.2018

It's thousands of lines of code, every time I add a system I thoroughly test it and I have never crashed doing any action with OnDialogResponse, but here is the beginning of it;

Quote:

public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
for(new i = 0, l = strlen(inputtext); i < l; i ++)
{
if(inputtext[i] == '%') inputtext[i] = '#';
}

}

I have no idea why there are 27 arguments in the crash, it just doesn't seem logical.