Duplicated reading?
For some reason my code gets duplicated, so if the original line that we have is like this
PHP Code:
PHP Code:
PHP Code:
PHP Code:
Code:
L 08/18/2018 - 15:29:04: #1 Called |
Re: Duplicated reading?
To simplify your code you can use "if(szDataName[0] == ';')" and "equal(szDataName[1], szPlayerName )" without having to remove the semicolon.
|
Re: Duplicated reading?
Quote:
|
Re: Duplicated reading?
Instead of
PHP Code:
PHP Code:
|
Re: Duplicated reading?
Quote:
|
Re: Duplicated reading?
Google "while feof" (it's same in C) , it's a common problem.
|
Re: Duplicated reading?
Quote:
|
Re: Duplicated reading?
They shouldn't for reading a file line by line.
|
Re: Duplicated reading?
Quote:
let's say we have this line PHP Code:
PHP Code:
|
Re: Duplicated reading?
What do you mean? The entire line should be copied.
|
All times are GMT -4. The time now is 22:06. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.