warning 202: number of arguments does not match definition
#1

----
Reply
#2

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

https://sampwiki.blast.hk/wiki/ShowPlayerDialog
Reply
#3

resolved
Reply
#4

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.
Reply
#5

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
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)