OnRconCommand () bug or what?
#1

Crash plugin prints this:
Код:
[02:29:52] [debug] Run time error 3: "Stack/heap collision (insufficient stack size)"
[02:29:52] [debug]  Stack pointer (STK) is 0x5C04, heap pointer (HEA) is 0x5D38
[02:29:52] [debug] AMX backtrace:
[02:29:52] [debug] #0 00000008 in public OnRconCommand () from ForRcon.amx
ForRcon.amx:
pawn Код:
public OnRconCommand(cmd[])
{
    return 0;
}
I get that error after sending 30 rcon cmds around 150 chars long,


as reference I used https://sampwiki.blast.hk/wiki/OnRconCommand, made seperated FS to work with OnRconCommand in gamemode
Код:
Important Note: You will need to include this callback in a loaded filterscript for it to work in the gamemode!
so is there some OnRconCommand lenght limit or?
Reply
#2

did ya use ForRcon fs ?
if yes the problem came from there.
Reply
#3

My whole code from ForRcon.amx

pawn Код:
#include <a_samp>


public OnRconCommand(cmd[])
{
    return 0;
}
Reply
#4

How about trying to define your filterscript as a filterscript? Then, I don't know what's the problem with heap/stack

I looked a bit with search and I found this, it may work, may not, test it out, show us the results.

Quote:
Originally Posted by leonardo1434
Посмотреть сообщение
The stack/heap is insufficient.... Try expand it by using that.

pawn Код:
#pragma dynamic hereyouputtheamount
// ex:
 #pragma dynamic 500000
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)