Raised This Month: $ Target: $400
 0% 

write_file() - Read-Only attribute help


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Miczu
Member
Join Date: Jul 2007
Old 12-14-2007 , 17:32   write_file() - Read-Only attribute help
Reply With Quote #1

How can I check file attribute (is it Read-Only).

When I use write_file() on read-only file, i got 2 errors:
- can't write file (its normal)
- Invalid menu id 0(0)
[AMXX] Run time error 10 (native "menu_display")

Both errors are only when write file is read-only

Can i change attribute by amxx? (i don't think soo, but I can still ask )
Miczu is offline
_Master_
Senior Member
Join Date: Dec 2006
Old 12-15-2007 , 07:34   Re: write_file() - Read-Only attribute help
Reply With Quote #2

No.

PS: Why would you want to do that anyway?

Last edited by _Master_; 12-15-2007 at 07:36.
_Master_ is offline
Miczu
Member
Join Date: Jul 2007
Old 12-15-2007 , 08:16   Re: write_file() - Read-Only attribute help
Reply With Quote #3

I store coordinats (for every map different, and it can by modify by using my plug) in a file. Some people use default file, and got errors when plug try save changes.

I need a way to check, is it posible to make changes in file, to prevent errors
Miczu is offline
phoenixwarlords
Junior Member
Join Date: Nov 2007
Old 12-15-2007 , 08:20   Re: write_file() - Read-Only attribute help
Reply With Quote #4

why dont u answer my topic :S pls answer
phoenixwarlords is offline
dangerix
Senior Member
Join Date: Aug 2007
Location: Germany
Old 12-15-2007 , 08:49   Re: write_file() - Read-Only attribute help
Reply With Quote #5

You're bumbing another topic for your own one?

Wow, that's new.
__________________
dangerix is offline
Reply


Thread Tools
Display Modes

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 11:07.


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