AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   write_file() - Read-Only attribute help (https://forums.alliedmods.net/showthread.php?t=64388)

Miczu 12-14-2007 17:32

write_file() - Read-Only attribute help
 
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 :shock:

Can i change attribute by amxx? (i don't think soo, but I can still ask :wink:)

_Master_ 12-15-2007 07:34

Re: write_file() - Read-Only attribute help
 
No.

PS: Why would you want to do that anyway?

Miczu 12-15-2007 08:16

Re: write_file() - Read-Only attribute help
 
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 :cry:

phoenixwarlords 12-15-2007 08:20

Re: write_file() - Read-Only attribute help
 
why dont u answer my topic :( :S pls answer

dangerix 12-15-2007 08:49

Re: write_file() - Read-Only attribute help
 
You're bumbing another topic for your own one?

Wow, that's new.


All times are GMT -4. The time now is 11:07.

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