SA-MP Forums Archive
Dialog problem? - 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: Dialog problem? (/showthread.php?tid=300992)



Dialog problem? - oliverrud - 02.12.2011

I'm having this really strange dialog problem, probably just some stupid error that I have missed.
pawn Код:
if(dialogid == 4){
        if(response){
            new xxz[120];
            format(xxz,sizeof(xxz),"SELECT name FROM characters WHERE name = '%s'",Add_(inputtext));
            mysql_query(xxz);
            mysql_store_result();
            if(mysql_num_rows() == 1){ print("Test") }
    }
}
It does call dialogid 4, I did some printing on that, but for some reason nothing of this will work, I even tried just adding print("test"); right after if(dialogid == 4) but it still doesn't call it.
My printing to confirm it was called:
Код:
OnDialogResponse Called Dialogid:4 Response:1 Listitem:-1 Inputtext:Test