[HELP]Dialogs - 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: [HELP]Dialogs (
/showthread.php?tid=558687)
[HELP]Dialogs -
Tautwis - 18.01.2015
Hello. I need somebody to help me, because i can't solve this problem for like 3hours...
Here is the code:
PHP код:
if(listitem == 2) { ShowPlayerDialog(playerid, dialog1, DIALOG_STYLE_LIST, "{FFFFFF}Question","First question\nSecond question \nThird question","Continue",""), correct[playerb] += 1; }
else if(listitem == 3 || listitem == 1) return ShowPlayerDialog(playerid, dialog1, DIALOG_STYLE_LIST, "{FFFFFF}Question","First question\nSecond question \nThird question","Continue",""), didntpass[playerb] = 1;
So the problem is, that the correct question is "Second question", but when i press it, it doesn't count as correct answer. The correct answer count's as "Third question". Wth ?
Re: [HELP]Dialogs -
Tautwis - 18.01.2015
bump
Re: [HELP]Dialogs -
Runn3R - 18.01.2015
First question is listitem 0 second is 1 third is 2 you get the point...
Re: [HELP]Dialogs -
Tautwis - 18.01.2015
omg im so dumb -_- Thanks man, you saved the day