Raised This Month: $ Target: $400
 0% 

Check if the first line in file


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Mlk27
Veteran Member
Join Date: May 2008
Old 05-11-2009 , 18:07   Re: Check if the first line in file
Reply With Quote #7

owh. i get it now


Code:
new creditcheck = 0 while (file && !feof(file)) {     fgets(file, linedata, charsmax(linedata))     trim(linedata)     if(!creditcheck)     {         creditcheck = 1                 if(linedata[0] == '/' && linedata[1] == '/')             set_task(10.0, "print_spawnscredit", _, linedata, charsmax(linedata))     } }

kk thanks
__________________
HLDSWatch - HLDS monitoring and auto restarter script

Last edited by Mlk27; 05-11-2009 at 18:10.
Mlk27 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 01:34.


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