Raised This Month: $ Target: $400
 0% 

Read/writeing in files


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
schnitzelmaker
Senior Member
Join Date: Apr 2006
Location: HERE
Old 10-15-2006 , 08:13   Re: Read/writeing in files
Reply With Quote #3

Another way are the new filehandle commands
Code:
new authid[32],steamid[32],array[32] get_user_authid(id,authid,31) new fp=fopen("gNames.txt","rw")//open file in read-write mode while(!feof(fp)) //read lines until end-of-file {     fgets (fp,array,31)//read a line from file     parse(array,steamid,31)     if(equali(steamid,authid))//check if steamid(in file) is same as authid from player     {         client_print(0,print_chat,"steamid==authid:%s",authid,steamid)         //your code here...     } }
__________________

Last edited by schnitzelmaker; 10-15-2006 at 08:18.
schnitzelmaker 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 04:50.


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