SA-MP Forums Archive
Y_INI is not writing anything. - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Y_INI is not writing anything. (/showthread.php?tid=362687)



Y_INI is not writing anything. - Ronaldo_raul™ - 25.07.2012

I was just making a login and register system for releasing it out here. But the problem is Y_INI is not even saving a single word. I creates the .ini file with the name in the assigned path but it is not writing the data in there.

I don't know why ?

Code is perfect.

Is anyone also facing this or do anyone know how to fix this, please post.


Regards,
Ronaldo_raul


Re: Y_INI is not writing anything. - IstuntmanI - 25.07.2012

After some time (but not everytime) Y_INI have many problems, can't write, read ... crashdetect give many things about that (the most are at INI_Open with a value of -1).

Try to use crashdetect.


Re: Y_INI is not writing anything. - Ronaldo_raul™ - 25.07.2012

Quote:
Originally Posted by costel_nistor96
View Post
After some time (but not everytime) Y_INI have many problems, can't write, read ... crashdetect give many things about that (the most are at INI_Open with a value of -1).

Try to use crashdetect.
Doesn't crashed though.

Quote:
Originally Posted by ******
View Post
If crash detect throws a -1 error it means you're not correctly checking the return values of INI_Open - it returns -1 if the file failed to open for some reason.
:O

and you may like to know whenever I start the server it doesn't even check for updates to your SVN server.


Re: Y_INI is not writing anything. - Littlehelper - 25.07.2012

Post the code here, maybe it can be some problem in your script?
Been using Y_Ini from a long time, never ever such problem encountered.
That probably is a problem in your script.


Re: Y_INI is not writing anything. - Ronaldo_raul™ - 25.07.2012

Quote:
Originally Posted by Littlehelper[MDZ]
View Post
Post the code here, maybe it can be some problem in your script?
Been using Y_Ini from a long time, never ever such problem encountered.
That probably is a problem in your script.
I actually even tried "Kush" Register and log system tutorial. But didn't even wrote a single word.


Topic

Script

P.S: Seems the problem was faced by you - Topic


Re: Y_INI is not writing anything. - Rudy_ - 25.07.2012

Do you have the files in scriptfiles folder?
like
users = where it can save the users.ini (%s.ini)
PS: too bad pastebin don't work for me


Re: Y_INI is not writing anything. - Ronaldo_raul™ - 25.07.2012

Quote:
Originally Posted by Rudy_
View Post
Do you have the files in scriptfiles folder?
like
users = where it can save the users.ini (%s.ini)
PS: too bad pastebin don't work for me
Yes. Its "Users" as specified in the tutorial.

I have it.

Sad for the pastebin part :/


Re: Y_INI is not writing anything. - Ronaldo_raul™ - 25.07.2012

Quote:
Originally Posted by ******
View Post
OK, do ANY file systems write anything? Can you write with just raw files? If not it's a permissions problem.
Yes, Dini works.

Only problems with Y_INI.