I'm having problems with my new plugin. If I retrieve (query) data from a database and the selected value from a column it's not existing, then I get errors in my server console. I'm looking for a native like SQL_Execute, if the query succes than return 1.
PHP Code:
...
formatex(szQuery, charsmax(szQuery), "SELECT * FROM `%s_player_id` WHERE name='%s'", l_prefix, name)
SQL_ThreadQuery(g_SqlTuple, "getPlayerID", szQuery, param, charsmax(param) )
...
public getPlayerID(...)
if(something like SQL_Execute(query))
//query succes, than read result
else
//print msg -> sorry no data found.
It's it's very annoying if I get errors in my log folder and in my server console if data it's not existing.