MySQL COUNT
#1

I'm trying to add all the players in a group's scores up with MySQL. I've written this query:

pawn Код:
mysql_format(conhand, query2, sizeof(query2), "SELECT COUNT(score) FROM users WHERE group_id = %d", groupid);
    mysql_pquery(conhand, query2, "OnGroupScoreCount");
But now, how do I get the result? What function do I use under OnGroupScoreCount? :S
Reply


Messages In This Thread
MySQL COUNT - by Derexi - 23.02.2015, 14:29
Re: MySQL COUNT - by Misiur - 23.02.2015, 14:46

Forum Jump:


Users browsing this thread: 2 Guest(s)