Something like that i guess :
PHP Code:
while(!feof(f))
{
fgets(f, szLine, charsmax(szLine))
trim( szLine )
if(!szLine[0] || szLine[0] == ';' || szLine[0] != '[')
continue;
replace(szLine, charsmax(szLine), "[", "")
replace(szLine, charsmax(szLine), "]", "")
// replace(szLine, charsmax(szLine), "^n", "") // used trim before
copy(Data[STEAMID], charsmax(Data[STEAMID]), szLine)
// Here i should get the name and last connection time
fgets(f, Data[NAME], charsmax(Data[NAME]))
trim( Data[NAME] )
fgets(f, Data[LAST_CONNECT], charsmax(Data[LAST_CONNECT]))
trim( Data[LAST_CONNECT] )
server_print("%d %-22.22s %-22.22s %s", ++i, Data[NAME], Data[STEAMID], Data[LAST_CONNECT])
}
__________________