Now it works, I used a variable instead and it is probably better than natives.
PHP Code:
new NextLine = Lines[0];
new CurrentLine;
while(fgets(FilePointer, Text, charsmax(Text)))
{
CurrentLine++;
client_print(0, print_chat, "Current Line: %i", CurrentLine);
if( ( ftell(FilePointer) == NextLine && !StripSpaces ) || ( strcmp(Text, "") == 0 && StripSpaces ) )
{
if(StripSpaces || ( !StripSpaces && LinesLength != LinesDestroyed ) )
{
LinesDestroyed++;
NextLine = Lines[LinesDestroyed];
continue;
}
}
fputs(TempFilePointer, Text);
}
For some reason, empty lines are not captured. I tried strcmp(Text, "") == 0, !Text[0] and no luck, any reason?