Copy the file's content
#1

Hello.
Guys, how can I copy the content of one .ini file to another one?
There're about 30 rows in this file.

Sorry for my English.
Reply
#2

Use a file plugin would be your best option.

https://sampforum.blast.hk/showthread.php?tid=92246
Reply
#3

But there're no copy all file content function..or rename file function. =(
Reply
#4

Well he just made a mistake not listing the native there it is there look at the function documentation.
Reply
#5

So I've done:

pawn Код:
format(string,sizeof(string),"root/scriptfiles/Files/Players/%s.ini",plnamep);
format(string2,sizeof(string2),"root/scriptfiles/Files/Players/%s.ini",changenam);
file_move(string, string2);
But the old one is still existing, but new one - don't.
Reply
#6

pawn Код:
format(string,sizeof(string),"/Files/Players/%s.ini",plnamep);
format(string2,sizeof(string2),"/Files/Players/%s.ini",changenam);
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)