SA-MP Forums Archive
warning 202: number of arguments does not match definition - 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: warning 202: number of arguments does not match definition (/showthread.php?tid=532824)



warning 202: number of arguments does not match definition - brandypol - 20.08.2014

Could someone tell me how many arguments there is in the ShowPlayerDialog function ?

Here is my script :

ShowPlayerDialog(playerid,19343,DIALOG_STYLE_MSGBO X,"Server Owner",string, "Back");


What did i do wrong in my script ?


Re: warning 202: number of arguments does not match definition - PaYkOK - 20.08.2014

pawn Код:
ShowPlayerDialog(playerid,19343,DIALOG_STYLE_MSGBOX, "Server Owner", string,  "Back", "");
(playerid, dialogid, style, caption[], info[], button1[], button2[])

you were missing the 2nd button


Re: warning 202: number of arguments does not match definition - SnG.Scot_MisCuDI - 20.08.2014

Quote:
Originally Posted by brandypol
Посмотреть сообщение
Could someone tell me how many arguments there is in the ShowPlayerDialog function ?

Here is my script :

ShowPlayerDialog(playerid,19343,DIALOG_STYLE_MSGBO X,"Server Owner",string, "Back");


What did i do wrong in my script ?
ShowPlayerDialog(playerid,19343,DIALOG_STYLE_MSGBO_X,"Server Owner",string, "Back");
Idk if that was a copy n paste error but you have a space in MSGBOX
pawn Код:
ShowPlayerDialog(playerid,19343,DIALOG_STYLE_MSGBOX,"Server Owner",string, "Back","");



Re: warning 202: number of arguments does not match definition - brandypol - 21.08.2014

Quote:
Originally Posted by PaYkOK
Посмотреть сообщение
pawn Код:
ShowPlayerDialog(playerid,19343,DIALOG_STYLE_MSGBOX, "Server Owner", string,  "Back", "");
(playerid, dialogid, style, caption[], info[], button1[], button2[])

you were missing the 2nd button
Thanks a lot