Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bug Dialog (last version) #959

Open
PainFrenemy2 opened this issue Aug 9, 2024 · 4 comments
Open

Bug Dialog (last version) #959

PainFrenemy2 opened this issue Aug 9, 2024 · 4 comments
Labels
bug Something isn't working

Comments

@PainFrenemy2
Copy link

PainFrenemy2 commented Aug 9, 2024

The problem with the dialog is that if you send %s %d %i etc to the input(DIALOG_STYLE_INPUT) it will throw an error, the dialog won't show or close, in GetPlayerDialogID(playerid) it will still be considered open

here are the test commands to check
CMD:test(playerid) { //send %s SPD(playerid, 100, DIALOG_STYLE_INPUT, " ", "132", "Send", "cl"); }
CMD:checkdd(playerid) { SCM(playerid, -1, "%d", GetPlayerDialogID(playerid)); }

Release version
[v1.3.1.2739]

@PainFrenemy2 PainFrenemy2 added the bug Something isn't working label Aug 9, 2024
@AmyrAhmady
Copy link
Member

what do you mean it will throw an error? where does it throw the error? and you said dialog won't show or close. what does this mean as well? is your input dialog shown or closed?

@PainFrenemy2
Copy link
Author

send %s %d to the input field and then call GetPlayerDialogID(playerid)

@AmyrAhmady
Copy link
Member

Well can you please give us information first before forcing us to test it in game?

@PainFrenemy2
Copy link
Author

https://github.com/openmultiplayer/open.mp/compare/master...PainFrenemy2:open.mp:patch-1?diff=unified&w=

if the title field is empty, the dialog will not be displayed

SPD(playerid, 100, DIALOG_STYLE_INPUT, "", "132", "Send", "cl");

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants