argument type mismatch ShowPlayerDialog
#1

Код:
ShowPlayerDialog(playerid,dialogid,DIALOG_STYLE_PASSWORD,"{B1D404} World War 3 [v1]-=- Register Account Information","Welcome %s(%d) To World War 3 -=- Team Death Match",PlayerName(playerid),playerid,"Register","Exit");
I don't get this it gives me and error Argument Type Mismatch or some shit, can someone tell me wheat i did wrong with it?
Reply
#2

Did you define "dialogid" on top of your script?
Reply
#3

yea it's not that it's this i just don't know where to put it, i know how to do it with sendclientmessage but never did it with showplayerdialog
Код:
%s(%d) To World War 3 -=- Team Death Match",PlayerName(playerid),playerid,"Register","Exit");
Reply
#4

Try this:
pawn Код:
ShowPlayerDialog(playerid,dialogid,DIALOG_STYLE_PASSWORD,"{B1D404} World War 3 [v1]-=- Register Account Information","Welcome %s(%d) To World War 3 -=- Team Death Match","Register","Exit",PlayerName(playerid),playerid);
Reply
#5

Use format.

Example:

pawn Код:
new string[60];
format(string, 60, ".... %d", playerid);
ShowPlayerDialog(playerid, dialogid, dialog_style, "info", string, "yes", "no");
Reply
#6

pawn Код:
new str[75];
format(str, sizeof(str),"Welcome %s(%d) To World War 3 -=- Team Death Match",PlayerName(playerid),playerid);
ShowPlayerDialog(playerid,dialogid,DIALOG_STYLE_PASSWORD,"{B1D404} World War 3 [v1]-=- Register Account Information",str,"Register","Exit");
ShowPlayerDialog doesnt admit parameters.
Reply
#7

Quote:
Originally Posted by JustBored
Посмотреть сообщение
pawn Код:
new str[75];
format(str, sizeof(str),"Welcome %s(%d) To World War 3 -=- Team Death Match",PlayerName(playerid),playerid);
ShowPlayerDialog(playerid,dialogid,DIALOG_STYLE_PASSWORD,"{B1D404} World War 3 [v1]-=- Register Account Information",str,"Register","Exit");
ShowPlayerDialog doesnt admit parameters.
Too late...
Reply
#8

This is a simple Dialog..It doesn't need format.
Reply
#9

LOl you won me for a few seconds xd.
Reply
#10

It needs, he uses %s and %d and with this he shows his playerid and name and it needs format.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)