file blank - 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: file blank (
/showthread.php?tid=401133)
file blank -
ReVo_ - 21.12.2012
Until now everything worked correctly, today I changed hosting and server is no longer able to write to a file (can read, but if you write out white)
What may be the problem?
Re: file blank -
LarzI - 21.12.2012
Be sure to use / instead of \ when defining paths when you're using an online ftp server.
Re: file blank -
RedCrossER - 21.12.2012
Check the permission
Re: file blank -
ReVo_ - 22.12.2012
pawn Код:
new File:f = fopen("test.txt", io_append);
fwrite(f, "Ciao come va?");
fclose(f);
(fs test)
file created and well written, problem might be Y_Ini? i will do some tests..
Re: file blank -
LarzI - 22.12.2012
The problem might be the directory you save it. Let us see the path for the files.
Re: file blank -
ReVo_ - 22.12.2012
everything worked good until the hosting is changed, anyway today i have reuploaded files, the file was created in the right folder (if it doesn't exist) but didn't write anything
Re: file blank -
ReVo_ - 24.12.2012
the problem is Y_Ini
Not work:
new INI
f = INI_Open("ciao.txt");
INI_WriteInt(xf, "ciao", 50);
INI_Close(xf);
Work:
new File:f = fopen("test.txt", io_append);
fwrite(f, "Ciao come va?");
fclose(f);
before I prepare to change file system, there is a solution already widespread?