SA-MP Forums Archive
how to change save directory. - 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)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: how to change save directory. (/showthread.php?tid=243251)



how to change save directory. - iGetty - 22.03.2011

pawn Код:
format(vFile, sizeof(vFile), "%d.ini", Created);
Okay so I have that, how could I save it to a new folder like, Vehicle.. the name of the folder is vehicles, the location is in the scriptfiled.. At the minute, they are just saving in the script files.


Re: how to change save directory. - Stigg - 22.03.2011

pawn Код:
format(vFile, sizeof(vFile), "YOUR_ACCOUNTS_FOLDER/YOUR_ITEM_FOLDER/%d.ini", Created);



Re: how to change save directory. - iGetty - 22.03.2011

Quote:
Originally Posted by Stigg
Посмотреть сообщение
pawn Код:
format(vFile, sizeof(vFile), "YOUR_ACCOUNTS_FOLDER/YOUR_ITEM_FOLDER/%d.ini", Created);
As I said, it already saves in my server folder, into the scriptfles with just that, how can I make it to save in a new golder named Vehicles?


Re: how to change save directory. - Stigg - 22.03.2011

pawn Код:
format(vFile, sizeof(vFile), "Vehicles/%d.ini", Created);
Make sure you create the Vehicle folder too.


Re: how to change save directory. - iggy1 - 22.03.2011

If you want to save outside of the scriptfiles directory you will need to use a plugin.
This one: https://sampforum.blast.hk/showthread.php?tid=92246


Re: how to change save directory. - vital2k - 22.03.2011

Could you not use the default windows folder structure such as.

'../Vehicles/%d.ini'

I'm not sure as I don't script but that would be the most logical solution.