Crash while using ondialogresponse - 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: Crash while using ondialogresponse (
/showthread.php?tid=424103)
Crash while using ondialogresponse -
Arpatos - 20.03.2013
Hey dudes.
I've a little filterscript about accessories. All is working perfect but on dialog response, server crashes.
Here is the crash code :
Quote:
[18:34:58] [debug] #0 native fwrite () [00405710] from samp-server.exe
[18:34:58] [debug] #1 000065e8 in ?? () from Acc.amx
[18:34:58] [debug] #2 00008a9c in public OnDialogResponse () from Acc.amx
[18:34:58] [debug] System backtrace:
|
And here the code of :
Quote:
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
if(dialogid == Menu)
{
if(response)
{
if(listitem == 0) //VARIABLE SI LE FICHIER MARCHHE OU RUN !!!
{
new string2[64];
new playername2[MAX_PLAYER_NAME];
GetPlayerName(playerid, playername2, sizeof(playername2));
format(string2, sizeof(string2), "chapeau/%s.ini", playername2);
if(fexist(string2))
{
SendClientMessage(playerid,COLOR_ERROR, "Erreur,Vous avez deja un chapeau dans votre sac...");
}
else
{
new listitems[] = "Chapeau\nCasquette " ;
ShowPlayerDialog(playerid,200,DIALOG_STYLE_LIST,"{ 448844}Chapeau ",listitems,"Ok","Quitter");
}
}
|
I have also 2 other "if listitem=" .
Can someone helps please ?
Re : Crash while using ondialogresponse -
Arpatos - 20.03.2013
nobody ?
Re: Crash while using ondialogresponse -
xeeZ - 20.03.2013
Did you read the stack trace? Hint: the most recent call is on top
Re: Crash while using ondialogresponse -
ReVo_ - 20.03.2013
[18:34:58] [debug] #0 native fwrite () [00405710] from samp-server.exe
file functions crashs on a invalid handle