Check if the first line in file
Sorry I can't figure this out. How do I check if the first line in a file starts with comments?
Code:
|
Re: Check if the first line in file
Your code does what you want.
|
Re: Check if the first line in file
Doesn't work when the first comments are in other lines, eg
file.txt de_dust2 dust3 // de_dust2 |
Re: Check if the first line in file
So reverse the checks.
|
Re: Check if the first line in file
PHP Code:
or... PHP Code:
|
Re: Check if the first line in file
No need to create another var. In its code the comment check should be done before spawnscredit check.
|
Re: Check if the first line in file
owh. i get it now :grrr:
Code:
kk thanks |
| All times are GMT -4. The time now is 01:34. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.