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=571037)



warning 202: number of arguments does not match definition - Penguin1997 - 15.04.2015

----


Re: warning 202: number of arguments does not match definition - Konstantinos - 15.04.2015

You forgot the 2 last parameters which is button1 and button2.

https://sampwiki.blast.hk/wiki/ShowPlayerDialog


Re: warning 202: number of arguments does not match definition - Penguin1997 - 15.04.2015

resolved


Re: warning 202: number of arguments does not match definition - Konstantinos - 15.04.2015

I didn't mean in the command's parameters. Change that back to:
pawn Код:
CMD:shop(playerid, params[])
I meant that you forgot the 2 last parameters IN ShowPlayerDialog function.

For example (from wiki), you used:
pawn Код:
ShowPlayerDialog(playerid, DIALOG_WEAPONS, DIALOG_STYLE_LIST, "Weapons", "AK47\nM4\nSniper Rifle");
instead of:
pawn Код:
ShowPlayerDialog(playerid, DIALOG_WEAPONS, DIALOG_STYLE_LIST, "Weapons", "AK47\nM4\nSniper Rifle", "Option 1", "Option 2");
which is obvious that it's lacking button1 and button2.


Re: warning 202: number of arguments does not match definition - Penguin1997 - 15.04.2015

Quote:
Originally Posted by Konstantinos
Посмотреть сообщение
I didn't mean in the command's parameters. Change that back to:
pawn Код:
CMD:shop(playerid, params[])
I meant that you forgot the 2 last parameters IN ShowPlayerDialog function.

For example (from wiki), you used:
pawn Код:
ShowPlayerDialog(playerid, DIALOG_WEAPONS, DIALOG_STYLE_LIST, "Weapons", "AK47\nM4\nSniper Rifle");
instead of:
pawn Код:
ShowPlayerDialog(playerid, DIALOG_WEAPONS, DIALOG_STYLE_LIST, "Weapons", "AK47\nM4\nSniper Rifle", "Option 1", "Option 2");
which is obvious that it's lacking button1 and button2.
worked and +rep