Hello, I need some help with some code.
I want to count the rows that equals a specific steamId.
This is what I've tried :
Code:
formatex(szTemp,charsmax(szTemp),"SELECT * FROM `log` WHERE Player = '%s'", szSteamId)
SQL_ThreadQuery(g_SqlTuple, "returnValue",szTemp,Data,1);
returnValue
Code:
new asdf
asdf=SQL_NumResults(Query)
Another idea how to solve this is to return the value of this string
Code:
SELECT COUNT(Player) FROM log WHERE Player = 'STEAM_0:0:19289143'
But what I want is a variable with the number of rows, a specific steamid appears in.