HELP +Rep
#1

ERROR CODE here
pawn Код:
E:\Main\Life of Flying 0.3x (1)\Life of Flying 0.3x\gamemodes\LoF.pwn(18101) : error 035: argument type mismatch (argument 5)
MAIN CODE here:
pawn Код:
public DisplayDialogForPlayer(playerid, dialogid)
{
    switch(dialogid)
    {
        case 0:
        {
            ShowPlayerDialog(playerid, 1,DIALOG_STYLE_PASSWORD, "{FFFFFF}Hello, Welcome to The Life of Flying We have found you are registered.\r\n[USERNAME]: {FF9900}%s{FFFFFF}\n{FFFFFF}[IP]: {FF9900}%s{FFFFFF}\r\nPlease enter your password below to login.",playerid, ip,"Login","Quit");
        }
Reply
#2

pawn Код:
case 0:
{
      new string[244];
format(string, sizeof(string), "{FFFFFF}Hello, Welcome to The Life of Flying We have found you are registered.\r\n[USERNAME]: {FF9900}%s{FFFFFF}\n{FFFFFF}[IP]: {FF9900}%s{FFFFFF}\r\nPlease enter your password below to login.", playerid, ip);
ShowPlayerDialog(playerid, 1,DIALOG_STYLE_PASSWORD, string,"Login","Quit");
}
Reply
#3

pawn Код:
E:\Main\Life of Flying 0.3x (1)\Life of Flying 0.3x\gamemodes\LoF.pwn(18102) : error 017: undefined symbol "ip"
Reply
#4

You need to define 'ip'. GetPlayerIp will help here.
Reply
#5

Add this:
pawn Код:
new ip[16];
GetPlayerIp(playerid, ip, sizeof ip);
Reply
#6

pawn Код:
stock GetNamePlayer(playerid)
{
    new name[MAX_PLAYER_NAME];
    GetPlayerName(playerid ,name,sizeof(name));
    return name;
}
pawn Код:
case 0:
{
      new string[244];
      new ip[16];
      GetPlayerIp(playerid, ip, sizeof ip);
      format(string, sizeof(string), "{FFFFFF}Hello, Welcome to The Life of Flying We have found you are registered.\r\n[USERNAME]: {FF9900}%s{FFFFFF}\n{FFFFFF}[IP]: {FF9900}%s{FFFFFF}\r\nPlease enter your password below to login.", GetNamePlayer(playerid), ip);
      ShowPlayerDialog(playerid, 1,DIALOG_STYLE_PASSWORD, string,"Login","Quit");
}
Reply
#7

Help me for +rep again
Reply
#8

lol this
pawn Код:
E:\Main\Life of Flying 0.3x (1)\Life of Flying 0.3x\gamemodes\LoF.pwn(18103) : warning 202: number of arguments does not match definition
MAIN CODE
pawn Код:
{
      new string[244];
      format(string, sizeof(string), "{FFFFFF}Hello, Welcome to The Life of Flying We have found you are registered.\r\n[USERNAME]: {FF9900}%s{FFFFFF}\n{FFFFFF}[IP]: {FF9900}%s{FFFFFF}\r\nPlease enter your password below to login.", playerid, IP);
             ShowPlayerDialog(playerid, 1,DIALOG_STYLE_PASSWORD, string,"Login","Quit");//This line this line this line
}
Reply
#9

After dialogstylepass and before string you forgot to write your headline for that dialog.
Reply
#10

I have written just not shown in the code
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)