SA-MP Forums Archive
OnDialogResponse Error - 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: OnDialogResponse Error (/showthread.php?tid=395122)



OnDialogResponse Error - PryX0G3n - 25.11.2012

Hi , how to resolve this backtrace error ?

Код:
 [debug] #0  00015ee8 in ?? () from bkgm.amx
 [debug] #1  001b168c in public OnDialogResponse () from bkgm.amx
and i have problem with 2 dialog that when i use them cause a crash :

Код:
if(dialogid == GLOG)
{
if(response)
{
new File:glog;
glog = fopen("scriptfiles/DB/Log/buglog.txt",io_append);
new message[264];

format(message, sizeof(message), "\nReported Name %s: %s", GetName(playerid),inputtext);
fwrite(glog,message);
fclose(glog);
ShowPlayerDialog(playerid,447,DIALOG_STYLE_MSGBOX,"Bug Reported","Saved\nThank you\nGoodbye","Ok","");
}
return 1;
}
Thanks in advance.


Re: OnDialogResponse Error - ikkentim - 25.11.2012

Seeing the backtrace, it seems to be a function within OnDialogResponse.

Its worth checking out you PlayerName function