Dini not working.
#1

pawn Код:
if(dialogid == dregister)
    {
        if(!response) return Kick(playerid);
        if(response)
        {
            if(!strlen(inputtext))
            {
                ShowPlayerDialog(playerid,dregister,DIALOG_STYLE_INPUT,"Register","Welcome! This account is not registered.\nEnter your own password to create a new account.\nPlease enter the password!","Register","Quit");
                return 1;
            }
            if(!dini_Exists(Path(playerid)))
            {

                new password[129];
                dini_Create(Path(playerid));
                WP_Hash(password,sizeof(password),inputtext);
                dini_Set(Path(playerid),"Password",password);
                ShowPlayerDialog(playerid,dlogin,DIALOG_STYLE_PASSWORD,"Login","Welcome back. This account is registered. \nInsert your password to login to your account.","Login","Quit");
            }
            return 1;
        }
    }
Its not writing the password or showing the login dialog
Reply
#2

Edit : Sorry I didn't see. please delete this post.
Reply
#3

OMG That's Y-INI i said Dini.
Reply
#4

Bumb!
Reply
#5

Can any one help me??
Reply
#6

use print( ); for debugging.. and you will see where it stops..

example:
pawn Код:
if(dialogid == dregister)
{
     print("Code pos #1");
     if(!response) return Kick(playerid);
     print("Code pos #2");
     if(response)
     {
          print("Code pos #3");
          if(!strlen(inputtext))
          {
               print("Code pos #4");
               ShowPlayerDialog(playerid,dregister,DIALOG_STYLE_INPUT,"Register","Welcome! This account is not registered.\nEnter your own password to create a new account.\nPlease enter the password!","Register","Quit");
               return 1;
          }
          print("Code pos #5");
          if(!dini_Exists(Path(playerid)))
          {
               print("Code pos #6");
               new password[129];
               dini_Create(Path(playerid));
               WP_Hash(password,sizeof(password),inputtext);
               dini_Set(Path(playerid),"Password",password);
               ShowPlayerDialog(playerid,dlogin,DIALOG_STYLE_PASSWORD,"Login","Welcome back. This account is registered. \nInsert your password to login to your account.","Login","Quit");
          }
          print("Code pos #7");
          return 1;
     }
}
and watch server log
Reply
#7

I used it and there is no problem at all, But its still not working.
Reply
#8

ANY ONE?
Reply
#9

Solvied
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)