15.01.2014, 18:15
Logs:
This code crashed:
Is there a way to fix this?
@EDIT
Oh, i know now. There is resolve: https://sampwiki.blast.hk/wiki/CallLocalFunction
inputtext is empty :X
Thanks for help
Код:
[20:24:40] [debug] Server crashed while executing truck.amx [20:24:40] [debug] AMX backtrace: [20:24:40] [debug] #0 native CallLocalFunction () [00471ef0] from samp-server.exe [20:24:40] [debug] #1 00001b7c in public OnDialogResponse (playerid=0, dialogid=4442, response=1, listitem=-1, inputtext[]=@0x00002aec "") at D:\Dawid\SA-MP\Programy\Pawno\include\QuisRegister.inc:466 [20:24:45] [debug] Native backtrace: [20:24:45] [debug] #0 004721bc in ?? () from samp-server.exe [20:24:45] [debug] #1 004010b6 in ?? () from samp-server.exe [20:24:45] [debug] #2 766a58ca in ?? () from plugins\crashdetect.DLL [20:24:45] [debug] #3 766a774f in ?? () from plugins\crashdetect.DLL [20:24:45] [debug] #4 766a0834 in ?? () from plugins\crashdetect.DLL [20:24:45] [debug] #5 766a591a in ?? () from plugins\crashdetect.DLL [20:24:45] [debug] #6 0046dac1 in ?? () from samp-server.exe [20:24:45] [debug] #7 00452850 in ?? () from samp-server.exe [20:24:45] [debug] #8 766a591a in ?? () from plugins\crashdetect.DLL [20:24:45] [debug] #9 0046d840 in ?? () from samp-server.exe [20:24:45] [debug] #10 00498cc9 in ?? () from samp-server.exe [20:24:45] [debug] #11 0045b26a in ?? () from samp-server.exe [20:24:45] [debug] #12 7711d12e in ?? () from C:\WINDOWS\SYSTEM32\ntdll.dll
Код:
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[]) { //some code if(funcidx("quisreg_OnDialogResponse") != -1) { return CallLocalFunction("quisreg_OnDialogResponse", "dddds", playerid, dialogid, response, listitem, inputtext); } return 0; } #if defined _ALS_OnDialogResponse #undef OnDialogResponse #else #define _ALS_OnDialogResponse #endif #define OnDialogResponse quisreg_OnDialogResponse forward quisreg_OnDialogResponse(playerid, dialogid, response, listitem, inputtext[]);
@EDIT
Oh, i know now. There is resolve: https://sampwiki.blast.hk/wiki/CallLocalFunction
inputtext is empty :X
Thanks for help