big Problem in Y_INI
#1

When the player Register and Log in , the file that is created in Scriptfiles is Empty

in host it's Empty on local host it's working good , what is the problem ?!
Reply
#2

um code?
Reply
#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
#4

Make sure you have placed the needed folders to store the data on scriptfiles folder.
Reply
#5

Already did , The files are created but they are 0 kb and empty
Reply
#6

try give permission to folder "scriptfiles" to read&write (with filezilla right click on scriptfiles folder and choose permissions and mark on Read and Write) also do the same to all folders inside scriptfiles
Reply
#7

Same problem

dudb saves but Y_INI don't
Reply
#8

Because of permissions. You must run the server as an Admin if you have this problem. Contact your host for more support.
Reply
#9

I already made the permissions 777 so they can read & write
Reply
#10

It's case sensitive, check the capitals and small letters
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)