SA-MP Forums

Go Back   SA-MP Forums > SA-MP Scripting and Plugins > Scripting Help > Help Archive

 
 
Thread Tools Display Modes
Old 31/08/2009, 05:00 PM   #1
arnutisz
Huge Clucker
 
Join Date: Nov 2007
Posts: 384
Reputation: 0
Default [HELP] fclose crashes server

Why this code crashes server?
Code:
    new string[50];
	format(string, 128, "%s.txt", strlen(params));
 	if(!fexist(string))
	{
	  new File:newf = fopen(string, io_write);
	  fclose(newf);
	}

I debugged it, it crashes in line "fclose(newf);".
arnutisz is offline  
Old 31/08/2009, 05:14 PM   #2
James_Alex
Gangsta
 
Join Date: Dec 2008
Posts: 597
Reputation: 0
Default Re: [HELP] fclose crashes server

cuz you have to remove the
so it will be
if(fexist...
James_Alex is offline  
Old 31/08/2009, 05:24 PM   #3
arnutisz
Huge Clucker
 
Join Date: Nov 2007
Posts: 384
Reputation: 0
Default Re: [HELP] fclose crashes server

I have to remove what?
arnutisz is offline  
 

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Server crashes when more than 1 person joins the server???? WillyP Server Support 0 05/07/2010 07:47 PM
[Help] fopen fclose f everything Niixie Help Archive 0 26/04/2010 05:32 PM
CMD crashes the server ÄitisOnHuora Help Archive 2 23/02/2010 08:49 PM
Help - server crashes Kurence Help Archive 4 24/09/2009 12:40 AM


All times are GMT. The time now is 09:26 AM.


Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.