big Problem in Y_INI
#3

PHP код:
case DIALOG_REGISTER:
        {
            if (!
response) return Kick(playerid);
            if(
response)
            {
                if(!
strlen(inputtext)) return ShowPlayerDialog(playeridDIALOG_REGISTERDIALOG_STYLE_INPUT"Register","You have entered an invalid password.\nType your password below to register a new account.","Register","Quit");
                if(
strlen(inputtext) <= || strlen(inputtext) >= 16)
                {
                     
ShowPlayerDialog(playeridDIALOG_REGISTERDIALOG_STYLE_INPUT"Register","You have entered an invalid password.\nType your password below to register a new account.","Register","Quit");
                     
SendClientMessage(playerid,COLOR_RED,"Passwords must be between 6 - 15 characters in length. Please type your password correctly to continue");
                     return 
1;
                }
                new 
INI:File INI_Open(UserPath(playerid));
                
INI_SetTag(File,"data");
                
INI_WriteInt(File,"Password",udb_hash(inputtext));
                
INI_WriteInt(File,"Cash",2500);
                
INI_WriteInt(File,"BankCash",PlayerInfo[playerid][pBankCash]);
                
INI_WriteInt(File,"Score",0);
                
INI_WriteInt(File,"Admin",0);
                new 
YearMonthDay;
                
getdate(YearMonthDay);
                
format(string,sizeof(string),"%02d/%02d/%d"DayMonthYear);
                
INI_WriteString(File,"DateJoined",string);
                
INI_Close(File);
                
                
ShowPlayerDialog(playeridDIALOG_SUCCESS_1DIALOG_STYLE_MSGBOX,"Success!","You have successfully registed","Ok","");
            }
        } 
This is Under OnDialogResponse
Reply


Messages In This Thread
big Problem in Y_INI - by nor15 - 24.07.2013, 03:27
Re: big Problem in Y_INI - by Kirollos - 24.07.2013, 03:32
Re: big Problem in Y_INI - by nor15 - 24.07.2013, 03:33
Re: big Problem in Y_INI - by ThePhenix - 24.07.2013, 03:39
Re: big Problem in Y_INI - by nor15 - 24.07.2013, 03:40
Re: big Problem in Y_INI - by Kirollos - 24.07.2013, 03:47
Re: big Problem in Y_INI - by nor15 - 24.07.2013, 04:01
Re: big Problem in Y_INI - by gtakillerIV - 24.07.2013, 04:17
Re: big Problem in Y_INI - by nor15 - 24.07.2013, 04:41
Re: big Problem in Y_INI - by _Khaled_ - 24.07.2013, 05:09

Forum Jump:


Users browsing this thread: 1 Guest(s)