Data is not OverWriting
#9

Okay After Googling I found a stock by FireCat And I am using it Stock is
PHP код:
fRemoveLine(file[],line[])//By: Firecat
{
    new 
string[256],
        
File:Temp fopen("Temp.ini",io_append),
        
File:Main fopen(file,io_read);

    while(
fread(Main,string))
    {
        if(
strcmp(string,line) != 0)
        {
            
fwrite(Temp,string);
        }
    }
    
fclose(Main);
    
fclose(Temp);
    
fremove(file);
    
    
Main fopen(fileio_append);
    
Temp fopen("Temp.ini",io_read);
    
    while(
fread(Temp,string))
    {
        
fwrite(Main,string);
    }
    
fclose(Main);
    
fclose(Temp);
    
fremove("Temp.ini");
    return 
1;

But when I use it in the following way
PHP код:
fRemoveLine(PFile,"Bans");
                    
fRemoveLine(PFile,"BanTime"); 
I get the following error
PHP код:
error 035argument type mismatch (argument 1)
error 035argument type mismatch (argument 1
Reply


Messages In This Thread
Data is not OverWriting - by rockhopper - 02.03.2015, 12:46
Re: Data is not OverWriting - by -=Dar[K]Lord=- - 02.03.2015, 13:08
AW: Data is not OverWriting - by Nero_3D - 02.03.2015, 13:08
Re: Data is not OverWriting - by rockhopper - 02.03.2015, 13:11
Re: Data is not OverWriting - by rockhopper - 02.03.2015, 14:03
Re: Data is not OverWriting - by Vince - 02.03.2015, 14:14
Re: Data is not OverWriting - by rockhopper - 02.03.2015, 14:24
Re : Data is not OverWriting - by Nero_3D - 02.03.2015, 15:34
Re: Data is not OverWriting - by rockhopper - 02.03.2015, 15:41
AW: Data is not OverWriting - by Nero_3D - 02.03.2015, 16:06

Forum Jump:


Users browsing this thread: 1 Guest(s)