Crash while using ondialogresponse
#1

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 ?
Reply
#2

nobody ?
Reply
#3

Did you read the stack trace? Hint: the most recent call is on top
Reply
#4

[18:34:58] [debug] #0 native fwrite () [00405710] from samp-server.exe

file functions crashs on a invalid handle
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)