Raised This Month: $ Target: $400
 0% 

Can't overwrite line whit write_file?


Post New Thread Reply   
 
Thread Tools Display Modes
jtp10181
Veteran Member
Join Date: May 2004
Location: Madison, WI
Old 05-27-2006 , 13:45  
Reply With Quote #31

the file natives are in the core so it does not matter what mod you are running. is this on linux or windows?

I looked in the source and this should be where its throwing the runtime error.

Code:
	// adding a new line in a middle of already existing file
	FILE* pTemp;
	char buffor[2048];

	if ((pTemp = tmpfile()) == NULL)
	{
		amx_RaiseError(amx, AMX_ERR_NATIVE);
		return 0;
	}
it is creating a temp file. Does the user your server runs as have permission to write to the systems temp directory? I Bet thats the problem.
-----

Anyway, once amxx 1.75 comes out I think there will be an "fputs" native which should fix the problem with the new file native code.
__________________
jtp10181 is offline
Send a message via ICQ to jtp10181 Send a message via AIM to jtp10181 Send a message via MSN to jtp10181 Send a message via Yahoo to jtp10181
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 08:43.


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