Lil help with dialog
#1

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");
Reply
#2

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");
Reply
#3

Still same:

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

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

Hmm, let me try.
Reply
#6

Works!
Reply
#7

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

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

Nah, yours still gave me the same error, Woody helped
Reply
#10

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


Forum Jump:


Users browsing this thread: 1 Guest(s)