SA-MP Forums Archive
HELP +Rep - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: HELP +Rep (/showthread.php?tid=541526)



HELP +Rep - ManGoe - 12.10.2014

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");
        }



Re: HELP +Rep - MasonSFW - 12.10.2014

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");
}



Re: HELP +Rep - ManGoe - 12.10.2014

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



AW: HELP +Rep - Flori - 12.10.2014

You need to define 'ip'. GetPlayerIp will help here.


Re: HELP +Rep - Sawalha - 12.10.2014

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



Re: HELP +Rep - MasonSFW - 12.10.2014

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");
}



Re: HELP +Rep - ManGoe - 12.10.2014

Help me for +rep again


Re: HELP +Rep - ManGoe - 12.10.2014

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
}



AW: HELP +Rep - Flori - 12.10.2014

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


Re: HELP +Rep - ManGoe - 12.10.2014

I have written just not shown in the code