|
Author
|
Message
|
|
Veteran Member
|

02-04-2007
, 20:25
Re: Reading from a file
|
#1
|
Quote:
Originally Posted by Paladinrocker
Ok I did it, and basically I just had it display a red message if the two steam ids were equal, and green if not, but they ended up all being red. Here's the code:
Code:
public special_steamid(id)
{
new steamFile = fopen("specialsteamids.txt", "r");
if(steamFile)
{
new data[128], authId[32], steamId[32];
while(fgets(steamFile, data, 127))
{
parse(data, steamId, 31);
get_user_authid(id, authId, 31);
if(equal(authId, steamId))
{
fclose(steamFile);
return 1;
}
}
}
fclose(steamFile);
return 0;
}
EDIT: Oops, sorry for double-posting.
|
I don't get it, all that code is doing, checking the SteamID. If correct, close the file.
|
|
|
|