05.06.2015, 11:01
mysql_query needs atleast 2 arguments.
That "conhandle" is a number representing the connection. mysql_connect returns that number..
EDIT: aaanad I'm too slow.
pawn Code:
native Cache:mysql_query(conhandle, query[], bool:use_cache = true);
pawn Code:
new gDbHandle;
public OnGameModeInit()
{
gDbHandle = mysql_connect(stuff);
}
// And then when you want to use it:
// mysql_query(gDbHandle, query);
EDIT: aaanad I'm too slow.