21.09.2009, 07:32
- If you havent assigned something if(!response) in OnDialogResponse, and there is another filterscript which has if(!response) assigned somewhere... then, when you click the 2nd button of 1st filterscript, you will see the result as the one in 2nd filterscript...
quite difficult to explain...
eg.
1st filterscript
2nd filterscript;
So, now if you open the dialog box of 1st FS, and press the 2nd Button which means Response==0. You will see a message "You pressed 2nd button of 2nd fs"....
i hope i explained enough...!
WTF? i knew another bug ... damn it...
will get back as soon as i remember it again
EDIT: The bug i reported is not just while we have dialogs in different Filterscripts... it exists even if the dialogs are in same FS
quite difficult to explain...
eg.
1st filterscript
Quote:
OnDialogResponse(..) { if(response) SendClientMessage(playerid,red,"You pressed 1st button of 1st fs"); return 1; // But you do not assign anything to if(!response) } |
Quote:
OnDialogResponse(...) { if(response) SendClientMessage(playerid,red,"you pressed 1st button of 2nd fs"); return 1; if(!response) return SendClientMessage(playerid,red,"You pressed 2nd button of 2nd FS"); // this one has both things assigned, when response==1 and when response==0; } |
i hope i explained enough...!
WTF? i knew another bug ... damn it...
will get back as soon as i remember it again
EDIT: The bug i reported is not just while we have dialogs in different Filterscripts... it exists even if the dialogs are in same FS