Raised This Month: $ Target: $400
 0% 

How to rename a file ? rename_file isn't working?


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Dolph_Ziggler
BANNED
Join Date: Jun 2011
Old 06-15-2011 , 07:01   Re: How to rename a file ? rename_file isn't working?
Reply With Quote #1

Code:
new oldfile[] = "addons/amxmodx/abc.ini"
new newfile[] = "addons/amxmodx/xyz.ini"

public plugin_init() {
	register_plugin(PLUGIN, VERSION, AUTHOR)
	rename_file(oldfile, newfile)
}
maybe like that ?
Dolph_Ziggler is offline
Send a message via MSN to Dolph_Ziggler
drekes
Veteran Member
Join Date: Jul 2009
Location: Vault 11
Old 06-15-2011 , 09:19   Re: How to rename a file ? rename_file isn't working?
Reply With Quote #2

Quote:
Originally Posted by Dolph_Ziggler View Post
Code:
new oldfile[] = "addons/amxmodx/abc.ini"
new newfile[] = "addons/amxmodx/xyz.ini"

public plugin_init() {
    register_plugin(PLUGIN, VERSION, AUTHOR)
    rename_file(oldfile, newfile)
}
maybe like that ?
Doesn't matter. The problem is that it can't rename the file, probably because of permission settings like Exolent said. I had the same problem before with deleting a file.
__________________

Quote:
Originally Posted by nikhilgupta345 View Post
You're retarded.
drekes is offline
Send a message via MSN to drekes
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 23:32.


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