big Problem in Y_INI -
nor15 - 24.07.2013
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 ?!
Re: big Problem in Y_INI -
Kirollos - 24.07.2013
um code?
Re: big Problem in Y_INI -
nor15 - 24.07.2013
PHP код:
case DIALOG_REGISTER:
{
if (!response) return Kick(playerid);
if(response)
{
if(!strlen(inputtext)) return ShowPlayerDialog(playerid, DIALOG_REGISTER, DIALOG_STYLE_INPUT, "Register","You have entered an invalid password.\nType your password below to register a new account.","Register","Quit");
if(strlen(inputtext) <= 5 || strlen(inputtext) >= 16)
{
ShowPlayerDialog(playerid, DIALOG_REGISTER, DIALOG_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 Year, Month, Day;
getdate(Year, Month, Day);
format(string,sizeof(string),"%02d/%02d/%d", Day, Month, Year);
INI_WriteString(File,"DateJoined",string);
INI_Close(File);
ShowPlayerDialog(playerid, DIALOG_SUCCESS_1, DIALOG_STYLE_MSGBOX,"Success!","You have successfully registed","Ok","");
}
}
This is Under OnDialogResponse
Re: big Problem in Y_INI -
ThePhenix - 24.07.2013
Make sure you have placed the needed folders to store the data on scriptfiles folder.
Re: big Problem in Y_INI -
nor15 - 24.07.2013
Already did , The files are created but they are 0 kb and empty
Re: big Problem in Y_INI -
Kirollos - 24.07.2013
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
Re: big Problem in Y_INI -
nor15 - 24.07.2013
Same problem
dudb saves but Y_INI don't
Re: big Problem in Y_INI -
gtakillerIV - 24.07.2013
Because of permissions. You must run the server as an Admin if you have this problem. Contact your host for more support.
Re: big Problem in Y_INI -
nor15 - 24.07.2013
I already made the permissions 777 so they can read & write
Re: big Problem in Y_INI -
_Khaled_ - 24.07.2013
It's case sensitive, check the capitals and small letters