search for authid:
Code:
search_file_for_auth(file[] = "addons/amxmodx/...", match_auth[]) {
new line, text[64], len
while ( read_file(file, line++, text, 63, len) ) {
if ( contain(text, match_auth) != -1 )
return 1 // match
}
return 0 // no match
}
Code:
new line, text[64], second_word[2], len, file[] = "addons/amxmodx/..."
while ( read_file(file, line++, text, 63, len) ) {
strbreak(text, text, 0, second_word, 1)
}
parse() is bad