Raised This Month: $ Target: $400
 0% 

Reload File


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
pokemonmaster
princess milk
Join Date: Nov 2010
Location: Somewhere in this world
Old 05-18-2013 , 06:14   Re: Reload File
Reply With Quote #4

Why do you use parse() if the line (s_Buffer) only contains a name? Also, parse is used in a wrong way.
you should do replace(s_Buffer, charsmax(s_Buffer), "^n", "") before checking anything else.

A fixed code would be
(I feel that something else is wrong, i don't know why -.-)
PHP Code:
public reloadfile(id

    
TrieClear(file_reload
    
    new 
s_Buffer192 ], i_Linei_Len;
    
    while ( ( 
i_Line read_file gfi_WorkFilei_Lines_Buffercharsmax s_Buffer ), i_Len ) ) ) 
    { 
        
replace(s_Buffercharsmax(s_Buffer), "^n""")
        
        if ( ! 
strlen s_Buffer ) || s_Buffer] == ';' || ( s_Buffer] == '/' && s_Buffer] == '/' ) ) 
            continue; 
        
        
TrieSetCell(file_reloads_Buffer1); 
    } 
    

__________________
اَشْهَدُ اَنْ لَّآ اِلٰهَ اِلَّا اللہُ وَحْدَه لَا شَرِيْكَ لَه وَ اَشْهَدُ اَنَّ مُحَمَّدًا عَبْدُه وَرَسُوْلُه
No longer active in AMXX. Sorry.

Last edited by pokemonmaster; 05-18-2013 at 06:21.
pokemonmaster 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 16:15.


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