Versuche es so:
C
new query[128];
mysql_format(dbhandle, query, sizeof(query), "SELECT COUNT(*) AS play FROM user WHERE allowed = '1' OR allowed = '0'");
mysql_query(dbhandle, query);
new zaehler = cache_get_field_content_int(0, "play", dbhandle);
Das ist allerdings die "langsame" Variante. Besser wäre es über ein Callback zu arbeiten, falls möglich:
C
new query[128];
mysql_format(dbhandle, query, sizeof(query), "SELECT COUNT(*) AS play FROM user WHERE allowed = '1' OR allowed = '0'");
mysql_pquery(dbhandle, query, "OnPlayCount", "");