Raised This Month: $ Target: $400
 0% 

File rename


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
MPNumB
Veteran Member
Join Date: Feb 2007
Location: Lithuania
Old 11-11-2007 , 13:05   File rename
Reply With Quote #1

Is it possible to rename a file using amxx? If yes - how?
__________________
Skill and no annoying bugs with fixed balance issues is my goal!
My approved plugins what don't show up in Approved List:
* Bomb/Death/CSS Radar
* HotVision
___
Need help? Please check this documentation first.
MPNumB is offline
Send a message via Skype™ to MPNumB
Alka
AMX Mod X Plugin Approver
Join Date: Dec 2006
Location: malloc(null)
Old 11-11-2007 , 13:14   Re: File rename
Reply With Quote #2

http://www.amxmodx.org/funcwiki.php?...file&go=search
__________________
Still...lovin' . Connor noob! Hello
Alka is offline
MPNumB
Veteran Member
Join Date: Feb 2007
Location: Lithuania
Old 11-13-2007 , 13:58   Re: File rename
Reply With Quote #3

Thx. =)
__________________
Skill and no annoying bugs with fixed balance issues is my goal!
My approved plugins what don't show up in Approved List:
* Bomb/Death/CSS Radar
* HotVision
___
Need help? Please check this documentation first.
MPNumB is offline
Send a message via Skype™ to MPNumB
MPNumB
Veteran Member
Join Date: Feb 2007
Location: Lithuania
Old 11-15-2007 , 06:26   Re: File rename
Reply With Quote #4

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
__________________
Skill and no annoying bugs with fixed balance issues is my goal!
My approved plugins what don't show up in Approved List:
* Bomb/Death/CSS Radar
* HotVision
___
Need help? Please check this documentation first.
MPNumB is offline
Send a message via Skype™ to MPNumB
[ --<-@ ] Black Rose
ANNIHILATED
Join Date: Sep 2005
Location: Stockholm, Sweden.
Old 11-15-2007 , 13:49   Re: File rename
Reply With Quote #5

What does happen? Nothing at all?
It seems like it should work, any errors?
Messages?
Script?
[ --<-@ ] Black Rose is offline
MPNumB
Veteran Member
Join Date: Feb 2007
Location: Lithuania
Old 11-15-2007 , 14:32   Re: File rename
Reply With Quote #6

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. =)
__________________
Skill and no annoying bugs with fixed balance issues is my goal!
My approved plugins what don't show up in Approved List:
* Bomb/Death/CSS Radar
* HotVision
___
Need help? Please check this documentation first.
MPNumB is offline
Send a message via Skype™ to MPNumB
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


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


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