Please, help!
#1

Hello guys, is there any way to rename a .dini.save file? If there is a way, what is it?
I'm using dini save system and I didn't see there dini_Rename function!
Can I use another system to rename the file?
Example:
from
Quote:

house.dini.save

to
Quote:

myhome.dini.save

Reply
#2

Can I rename the file using ini or something like this?
Please help!!!
Reply
#3

Guys, PLEASE help me !
Reply
#4

There is no native for renaming files. (tho there might be a plugin somewhere, try looking for it) You've gotta open the file, read it whole, save it to new file, then delete the old file.
Reply
#5

I use this way:
if it exists? remove and re-create using create file2

dini_Exists(filename[]) {
dini_Remove(filename[]) {
dini_Create(filename[]) {


exemple:
new file1[256];
new file2[256];

dini_Remove(file1);
//create new account (type rename)
dini_Create(file2);
Reply
#6

Guys I created vehicle saving system. So when I remove the vehicle with ID 134, there will be a bugs, so I have to rename the dini.save files 135 to 134, 135 to 136 and etc, because I'm locking them with their IDs and if I leave an empty space between 133 and 135, the system will not works as it should!
Reply
#7

Quote:
Originally Posted by silenthill
Посмотреть сообщение
I use this way:
if it exists? remove and re-create using create file2

dini_Exists(filename[]) {
dini_Remove(filename[]) {
dini_Create(filename[]) {
Bro I just need to rename the name of the folder, if I use your way, I have to get all parameters from the file, and than create the save file! And I have to crete maybe more than 200 files, so the server can lag !
Other solutions?
Reply
#8

Look http://forum.sa-mp.com/archive/index.php/t-416070.html
Reply
#9

Quote:
Originally Posted by silenthill
Посмотреть сообщение
Okay, so Vince said the dini is too old, slow... So than can you give me another system to rename saving files?
Reply
#10

Any other ideas?
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)