20.03.2013, 17:18
Hey dudes.
I've a little filterscript about accessories. All is working perfect but on dialog response, server crashes.
Here is the crash code :
And here the code of :
I have also 2 other "if listitem=" .
Can someone helps please ?
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: |
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"); } } |
Can someone helps please ?