PDA

View Full Version : OnDialogResponse Error


PryX0G3n
25/11/2012, 10:21 AM
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.

ikkentim
25/11/2012, 10:43 AM
Seeing the backtrace, it seems to be a function within OnDialogResponse.

Its worth checking out you PlayerName function