SA-MP Forums Archive
Lil help with dialog - 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)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Lil help with dialog (/showthread.php?tid=263136)



Lil help with dialog - GangsTa_ - 20.06.2011

I want to make a command which will show the stats with a dialog, so here's the code that's working, but I want just one button, it works without errors only when I write in with 2 buttons.
This one is working:

pawn Код:
ShowPlayerDialog(playerid, 1337, 0, "{FF0000}Statistics", string, "Done", "Cancel");
But this one gives an error "Arguments does not match the definition"

pawn Код:
ShowPlayerDialog(playerid, 1337, 0, "{FF0000}Statistics", string, "Done");



Re: Lil help with dialog - Ronaldo_raul™ - 20.06.2011

It should be like this
pawn Код:
ShowPlayerDialog(playerid,1337,DIALOG_STYLE_MSGBOX, "{FF0000}Statistics", string, "Done");
EDIT Sorry My fault-
try this at the end
pawn Код:
","Done","Cancel");



Re: Lil help with dialog - GangsTa_ - 20.06.2011

Still same:

Код:
warning 202: number of arguments does not match definition



Re: Lil help with dialog - The Woody - 20.06.2011

have you tryed this:
pawn Код:
ShowPlayerDialog(playerid, 1337, 0, "{FF0000}Statistics", string, "Done", "");



Re: Lil help with dialog - GangsTa_ - 20.06.2011

Hmm, let me try.


Re: Lil help with dialog - GangsTa_ - 20.06.2011

Works!


Re: Lil help with dialog - The Woody - 20.06.2011

Quote:
Originally Posted by GangsTa[MD]
Посмотреть сообщение
Works!
Good .


Re: Lil help with dialog - Ronaldo_raul™ - 20.06.2011

Quote:
Originally Posted by GangsTa[MD]
Посмотреть сообщение
Works!
did helped mine


Re: Lil help with dialog - GangsTa_ - 20.06.2011

Nah, yours still gave me the same error, Woody helped


Re: Lil help with dialog - Ronaldo_raul™ - 20.06.2011

Quote:
Originally Posted by GangsTa[MD]
Посмотреть сообщение
Nah, yours still gave me the same error, Woody helped
lol ok.....nvm.....gotta still do practice.xD