new rank;new bool:found = false;for (rank = 1; SQL_MoreRows(...); SQL_FetchRow(...), rank++){ if (steamid == ...) { found = true; break; }}