katursis / Pawn.CMD

🚀 Plugin-powered command processor for SA:MP server
MIT License
119 stars 13 forks source link

Stack Size Problem #27

Closed MaxAndolini closed 4 years ago

MaxAndolini commented 4 years ago
[debug] Run time error 3: "Stack/heap collision (insufficient stack size)"
[debug]  Stack pointer (STK) is 0x1DD8C50, heap pointer (HEA) is 0x1DD93C0
[debug] AMX backtrace:
[debug] #0 00117d00 in public dialog_DialogCompany (playerid=0, response=1, listitem=2, inputtext[]=@01dd93a4 "") at mod.pwn:12389
[debug] #1 native CallLocalFunction () from samp-server.exe
[debug] #2 00117d00 in public OnDialogResponse (playerid=0, dialogid=1, response=2, listitem=31298468, inputtext[]=@00000018 "") at \mod.pwn:12389

12389 - PC_EmulateCommand(playerid, "/sirket");

I have a command and it has a dialog, I am calling the same command when I press a list item in dialog. But it gives some problems.

@urShadow

Rewgger commented 4 years ago

You can try callcmd::cmdnamehere(playerid, "")Ë› @MaxAndolini

MaxAndolini commented 4 years ago

You can try callcmd::cmdnamehere(playerid, "")Ë› @MaxAndolini

Same problem.

MaxAndolini commented 4 years ago

Fixed.