Raised This Month: $ Target: $400
 0% 

Block Buttons


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
PurposeLessx
Senior Member
Join Date: Jun 2017
Old 06-22-2018 , 08:07   Re: Block Buttons
Reply With Quote #1

I tried to do it but I am not sure that where is the mistake. And also I couldn't use "fprintc" "fputs" commands perfectly.

PHP Code:
public DeleteButton(ent

    new 
filehandle fopen(filename"rt"); 

    new 
data[128], PurposeLess[600]; 
    if(
filehandle
    { 
        while(!
feof(filehandle)) 
        { 
            
fgets(filehandledatacharsmax(data)); 
            
trim(data); 

            
g_iButtons[g_iButtonCounter] = str_to_num(data); 

            if(
g_iButtons[g_iButtonCounter] == ent
            { 
                continue; 
            } 

            
copy(g_iButtonscharsmax(g_iButtons), PurposeLess); 
        } 
        
fclose(filehandle); 
    } 

    
filehandle fopen(filename"rt"); 

    if(
filehandle
    { 
        while(!
feof(filehandle)) 
        { 
            
fgets(filehandledatacharsmax(data)); 
            
trim(data); 

            
g_iButtons[g_iButtonCounter] = str_to_num(data); 

            
replace_all(datacharsmax(data), g_iButtons[g_iButtonCounter], ""); 
            
//fprintf(filename, PurposeLess); 
            //AGAIN WRONG NUMBER [ Puts all buttons to file again ] 
        

        
fclose(filehandle); 
    } 

May you give an example?

Last edited by PurposeLessx; 06-22-2018 at 08:07.
PurposeLessx is offline
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 12:46.


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