Save System - 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: Save System (
/showthread.php?tid=302028)
Save System -
lynxwolf - 07.12.2011
how do i save user files in scriptfiles/Users instead of script files
Re: Save System -
Thresholdold - 07.12.2011
You should have something like this in your script:
Код:
if (!fexist("MyFile/Config/somefilehere")){
new File:open = fopen("MyFile/Config/somefilehere",io_write);
just change the first one (MyFile) to Users.
so...
Код:
if (!fexist("Users/SomeAccount.sav")){
new File:open = fopen("Users/SomeAccount.sav",io_write);
Untested.