SA-MP Forums Archive
Need help (hidePlayerDialog with easydialog) - 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: Need help (hidePlayerDialog with easydialog) (/showthread.php?tid=469017)



Need help (hidePlayerDialog with easydialog) - Scrillex - 11.10.2013

I have problem with definition..

hidePlayerDialog
pawn Код:
#define                 hidePlayerDialog(%0)                    ShowDialog(%0, -1, 0, " ", " ", "", "")
Error where code is used:

pawn Код:
error 035: argument type mismatch (argument 2)



Re: Need help (hidePlayerDialog with easydialog) - Konstantinos - 11.10.2013

You cannot use a number with easydialog's format.

Use:
pawn Код:
ShowPlayerDialog( playerid, -1, DIALOG_STYLE_MSGBOX, "_", "_", "_", "" );
instead. That's how you can hide a shown dialog.


Re: Need help (hidePlayerDialog with easydialog) - Scrillex - 11.10.2013

Yeah i know that and thanks for your answer..Basically it will not work with easydialog right?

Btw thank you Konstantinos for your time you are always there to help


Re: Need help (hidePlayerDialog with easydialog) - Konstantinos - 11.10.2013

No, it will work! Easydialog can be used with ShowPlayerDialog too. It's just that you cannot pass a value but you need to use Show:name_here (I think it was defined as a string).


Re: Need help (hidePlayerDialog with easydialog) - boomerboom - 11.10.2013

Код:
ShowPlayerDialog( playerid, -1, DIALOG_STYLE_MSGBOX, "_", "_", "_", "" );