AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   File rename (https://forums.alliedmods.net/showthread.php?t=63084)

MPNumB 11-11-2007 13:05

File rename
 
Is it possible to rename a file using amxx? If yes - how?

Alka 11-11-2007 13:14

Re: File rename
 
http://www.amxmodx.org/funcwiki.php?...file&go=search

MPNumB 11-13-2007 13:58

Re: File rename
 
Thx. =)

MPNumB 11-15-2007 06:26

Re: File rename
 
sry, isn't working somewhy... have file:
oldname = "addons/amxmodx/data/ljs/updater/allowed_version.txt.ljs_downloading"

wanna rename to:
newname = "addons/amxmodx/data/ljs/updater/allowed_version.txt"

using:
rename_file(oldname, newname, 1)

result:
Not working... Plz help

[ --<-@ ] Black Rose 11-15-2007 13:49

Re: File rename
 
What does happen? Nothing at all?
It seems like it should work, any errors?
Messages?
Script?

MPNumB 11-15-2007 14:32

Re: File rename
 
I'v got what's the problem (it's cuz file was opend, so i needed to fclose(file_id).).. But i still have some problems, but they aren't obout this. If you still wanna help me, plz look here. =)


All times are GMT -4. The time now is 01:18.

Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.