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_Buffer[ 192 ], i_Line, i_Len;
while ( ( i_Line = read_file ( gfi_WorkFile, i_Line, s_Buffer, charsmax ( s_Buffer ), i_Len ) ) )
{
replace(s_Buffer, charsmax(s_Buffer), "^n", "")
if ( ! strlen ( s_Buffer ) || s_Buffer[ 0 ] == ';' || ( s_Buffer[ 0 ] == '/' && s_Buffer[ 1 ] == '/' ) )
continue;
TrieSetCell(file_reload, s_Buffer, 1);
}
}
__________________