Raised This Month: $ Target: $400
 0% 

write_file "Couldn't create temp file"


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
Elusive138
Senior Member
Join Date: Dec 2010
Old 12-28-2010 , 04:02   write_file "Couldn't create temp file"
Reply With Quote #1

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:
format(writeLinecharsmax(writeLine), "%s CT,%f,%f,%f"writeLinegCtOrigin[0], gCtOrigin[1], gCtOrigin[2]) 
to format a string which I then write with
PHP Code:
write_file(gSpawnsFilewriteLinegFileLine
This works when I'm writing a new line (where gFileLine = -1, which means the line didn't exist when I read it) but if I try to overwrite an existing line (gFileLine >= 0), I get an error:
Code:
L 12/28/2010 - 19:52:19: Couldn't create temp file
L 12/28/2010 - 19:52:19: [AMXX] Displaying debug trace (plugin "DefendTheVIP.amxx")
L 12/28/2010 - 19:52:19: [AMXX] Run time error 10: native error (native "write_file")
L 12/28/2010 - 19:52:19: [AMXX]    [0] DefendTheVIP.sma::WriteFile (line
Any help with this would be much appreciated!

Thanks.
Elusive138 is offline
 



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:58.


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