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...
}
}
__________________