Login box issue! help me plz
#1

------
Reply
#2

Show us the code of the login box when the password doesn't match with the stored.
Reply
#3

Quote:
Originally Posted by Ryz
Посмотреть сообщение
hey

i have one small one bug in my COD gamemode ,i need help

when player connect to server and if player miss-enter wrong password,

server doesnt show him to wrong password or re enter password box! he directly send him to team selection.

to much players reporting they losted stats and i cant say everytime to do /login pass!

and sorry but i cant add all my server codes here! plz help me
Are we meant to guess your code?

Quote:
Originally Posted by Xabi
Посмотреть сообщение
Show us the code of the login box when the password doesn't match with the stored.
Reply
#4

pawn Код:
public OnPlayerRequestClass(playerid, classid)
{
    Update3DTextLabelText(RankLabel[playerid], 0xFFFFFFFF, " ");
    Update3DTextLabelText(Duty[playerid], 0xFFFFFFFF, " ");
    Update3DTextLabelText(DM[playerid], 0xFFFFFFFF, " ");
    {PlayerPlaySound(playerid, 1068, 0.0, 0.0, 0.0);}
    new String[200];
    format(String, sizeof(String),""cblue"Usa\n"cgreen"Eurasia\n"cyellow"Arabica\n"cred"Soviet\n"cpurple"Austraillia\n"cblack"Taliban\nMercenary");
    ShowPlayerDialog(playerid, 1432, DIALOG_STYLE_LIST, "Select Team",String,"Select","Back");
    return 1;
}

///Flood Control

public OnPlayerConnect(playerid)
{
    RemoveBuildingForPlayer(playerid, 11654, -681.8750, 965.8906, 11.1250, 0.25);
RemoveBuildingForPlayer(playerid, 11492, -681.8750, 965.8906, 11.1250, 0.25);
RemoveBuildingForPlayer(playerid, 16433, -177.4375, 1056.3906, 22.8125, 0.25);
RemoveBuildingForPlayer(playerid, 16617, -122.7422, 1122.7500, 18.7344, 0.25);
RemoveBuildingForPlayer(playerid, 16618, -117.7656, 1079.4609, 22.2188, 0.25);
RemoveBuildingForPlayer(playerid, 16007, -177.4375, 1056.3906, 22.8125, 0.25);
RemoveBuildingForPlayer(playerid, 16740, -152.3203, 1144.0703, 30.3047, 0.25);
RemoveBuildingForPlayer(playerid, 16386, -117.7656, 1079.4609, 22.2188, 0.25);
RemoveBuildingForPlayer(playerid, 1308, -111.7422, 1087.5000, 19.4844, 0.25);
RemoveBuildingForPlayer(playerid, 1308, -86.8438, 1088.4141, 19.4844, 0.25);
RemoveBuildingForPlayer(playerid, 16385, -122.7422, 1122.7500, 18.7344, 0.25);
 if (udb_Exists(PlayerName2(playerid)))
    {
      if(PlayerInfo[playerid][LoggedIn] == 0)
      {
          new string[200];
          format(string, sizeof(string),""cwhite"Welcome "cred"%s "cwhite"you are already registered\nKindly enter password to login to your account", PlayerName2(playerid));
          ShowPlayerDialog(playerid, 125, DIALOG_STYLE_PASSWORD, "Login",string,"Login","Kick");
      }
    }
    if (!udb_Exists(PlayerName2(playerid)))
    {
      if(PlayerInfo[playerid][Registered] == 0)
      {
          new string[200];
          format(string, sizeof(string),""cwhite"Welcome "cred"%s "cwhite"you are not registered\nKindly enter password to register your account", PlayerName2(playerid));
          ShowPlayerDialog(playerid, 126, DIALOG_STYLE_PASSWORD, "Register",string,"Register","Kick");
      }
    }
    if(PlayerInfo[playerid][LoggedIn] == 1)
    {
        new pname[128];
        new file[128];
        GetPlayerName(playerid, pname, sizeof(pname));
        format(file, sizeof(file), savefolder,pname);
        if(!dini_Exists(file))
        {
            dini_Create(file);
            dini_IntSet(file, "Score", 0);
            dini_IntSet(file, "Money", 0);
            SetPlayerScore(playerid, dini_Int(file, "Score"));
            SetPlayerMoney(playerid, dini_Int(file, "Money"));
        }
        else
        {
            SetPlayerScore(playerid, dini_Int(file, "Score"));
            SetPlayerMoney(playerid, dini_Int(file, "Money"));
        }
    }
I AM USING LADMIN

must register and login is on

plz help
Reply
#5

We need to see the dialog code.
Reply
#6

i dont understand O.o

which dialog?
Reply
#7

Quote:
Originally Posted by Xabi
Посмотреть сообщение
Show us the code of the login box when the password doesn't match with the stored.
here

pawn Код:
public OnPlayerRequestClass(playerid, classid)
{
     if (!udb_Exists(PlayerName2(playerid)))
    {
      if(PlayerInfo[playerid][Registered] == 0)
      {
          new string[200];
          format(string, sizeof(string),""corange"Welcome "cred"%s ! "cgreen"You are not registered! \n Enter password to register your account!", PlayerName2(playerid));
          ShowPlayerDialog(playerid, 126, DIALOG_STYLE_PASSWORD, "{00CED1}Register Account Cod-TW",string,"Register","Exit");
      }
    }
    if (udb_Exists(PlayerName2(playerid)))
    {
      if(PlayerInfo[playerid][LoggedIn] == 0)
      {

          new string[200];
          format(string, sizeof(string),""cgreen"Welcome "cred"%s !"corange"You are already registered\n Enter password to login to your account\n"cred"Incorrect password!", PlayerName2(playerid));
          ShowPlayerDialog(playerid, 125, DIALOG_STYLE_PASSWORD, "{00CED1}Call of Duty Login:",string,"Login","Exit");
      }
    }
Reply
#8

Dialogid 125. Show us the dialogid 125.
Its under ondialogreponse
Reply
#9

-------------
Reply
#10

----------
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)