how to change save directory.
#1

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.
Reply
#2

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

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?
Reply
#4

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

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
Reply
#6

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.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)