Dini not working.
#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


Messages In This Thread
Dini not working. - by Gangster-rocks - 03.01.2013, 13:31
Re: Dini not working. - by Affan - 03.01.2013, 13:35
Re: Dini not working. - by Gangster-rocks - 03.01.2013, 13:37
Re: Dini not working. - by Gangster-rocks - 03.01.2013, 14:03
Re: Dini not working. - by Gangster-rocks - 03.01.2013, 14:16
Re: Dini not working. - by papedo - 03.01.2013, 14:24
Re: Dini not working. - by Gangster-rocks - 03.01.2013, 14:39
Re: Dini not working. - by Gangster-rocks - 03.01.2013, 15:09
Re: Dini not working. - by Gangster-rocks - 04.01.2013, 11:27

Forum Jump:


Users browsing this thread: 3 Guest(s)