write_file "Couldn't create temp file"
Hi
I need to be able to read origins from a file and write new origins to the same file. To do this I've used PHP Code:
PHP Code:
Code:
L 12/28/2010 - 19:52:19: Couldn't create temp fileThanks. |
Re: write_file "Couldn't create temp file"
Do you rent a server ?
I think the problem is more ftp rights than your code. |
Re: write_file "Couldn't create temp file"
It's a listenserver, running on my computer (Vista). My account has "Full Control" over the file in question. I'm pretty sure it's not an access control problem.
I find it easier to test new, half-written plugins on my own computer, not that I have any other server :P Thanks. |
Re: write_file "Couldn't create temp file"
I think, hlds (or listen server) doesn't have rights to write tmp file in C:\ dir.
|
Re: write_file "Couldn't create temp file"
I had the same problem. But I run server with limited access...
|
Re: write_file "Couldn't create temp file"
Quote:
EDIT: I just double checked, by forcing full permissions for the root drive, and "Run As Administrator". Still no.. sorry. |
Re: write_file "Couldn't create temp file"
When you overwrite a line, amxx needs to create a temp file to copy original file datas, and then the original file is completely rewritten.
Code:
// adding a new line in a middle of already existing file |
Re: write_file "Couldn't create temp file"
Do you know where that temp file is created and/or why I can't seem to create one?
Also, if anyone has an alternative method to save (modifiable) origins for spawning entities? Thanks! |
Re: write_file "Couldn't create temp file"
Quote:
For Windows XP/2003 it is root of system partition (С:\) Not sure with Win Vista/7 |
Re: write_file "Couldn't create temp file"
Quote:
The alternative would be to use the new file natives (fopen, fputs, etc.). When saving, read the whole file data into variables, then write to the file again with all of the updated data. |
| All times are GMT -4. The time now is 01:58. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.