Can't Compile [MySQL] (+rep)
#1

pawn Код:
public DisplayDialogForPlayer(playerid, dialogid)
{
    switch(dialogid)
    {
        case 1:
        {
            ShowPlayerDialog(playerid,1,DIALOG_STYLE_PASSWORD,"{1B8AE4}Login","{FFFFFF}Welcome to the {1B8AE4}Life of Flying %s\n\n{FFFFFF}This account is {1B8AE4}registered. {FFFFFF}To gain access, input your password below","Login","Quit",PlayerName(playerid);
        }
E:\Main\Life of Flying 0.3x (1)\Life of Flying 0.3x\gamemodes\LoF.pwn(16625) : error 001: expected token: ",", but found ";"
Reply
#2

ShowPlayerDialog(playerid, 1, DIALOG_STYLE_PASSWORD, "{1B8AE4}Login", "{FFFFFF}Welcome to the {1B8AE4}Life of Flying %s\n\n{FFFFFF}This account is {1B8AE4}registered. {FFFFFF}To gain access, input your password below", "Login", "Quit", PlayerName(playerid));
Reply
#3

Testing +repped
Reply
#4

Lol doesnt fixed
This happened
Reply
#5

it isent the dialog itself, its the coding can u show us so more coding?
Reply
#6

pawn Код:
switch(dialogid)
{
  case 1:
        {
           ShowPlayerDialog(playerid, 1, DIALOG_STYLE_PASSWORD, "{1B8AE4}Login", "{FFFFFF}Welcome to the {1B8AE4}Life of Flying %s\n\n{FFFFFF}This account is {1B8AE4}registered. {FFFFFF}To gain access, input your password below", "Login", "Quit", PlayerName(playerid));
        }


        case 2:
        {
            ShowPlayerDialog(playerid,2,DIALOG_STYLE_INPUT,"{FF9900}Registration","{FFFFFF}Welcome to the {FF9900}Life of Flying\n\n{FFFFFF}Please {FF9900}register {FFFFFF}an account by typing a password below.","Register","Quit");
        }
Reply
#7

Need more coding than the dialogs
Reply
#8

How would you expect it to work? It is impossible to use specifiers in dialogs, unless you format a message first.
Reply
#9

Try this
Код:
new str[128];
format(str, sizeof(str), , PlayerName(playerid));
ShowPlayerDialog(playerid, 1, DIALOG_STYLE_PASSWORD, "{1B8AE4}Login", str, "Login", "Quit");
If you wont to use format, use easyDialog include

Then you can make dialog like this:

Код:
Dialog_Show(playerid, 1, DIALOG_STYLE_PASSWORD, "{1B8AE4}Login", "{FFFFFF}Welcome to the {1B8AE4}Life of Flying %s\n\n{FFFFFF}This account is {1B8AE4}registered. {FFFFFF}To gain access, input your password below",  "Login", "Quit", PlayerName(playerid));
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)