Quote:
Originally Posted by Vince
pawn Код:
mysql_function_query(connectionHandle, query[], bool:cache, callback[], format[], {Float,_}:...);
- connectionHandle: returned by mysql_connect (usually 1)
- query: the query to execute (pre-formatted)
- cache: enable caching - true/false - only useful for select queries
- callback: function to call when the query is done (e.g. OnPlayerDataLoaded) - Can be left blank for update queries
- format for the callback, similar to sscanf. E.g. "ds" - Can also be left blank
- {Float,_}:...: Parameters to pass to that callback (e.g. playerid, ip) - Can be left blank if no parameters are passed.
|
Vince can you please explain me how to use it too but wich this example if posible
PHP код:
new log[156];
format(log,sizeof(log),"INSERT INTO `playerlog` (`username`,`status`) VALUES ('%s','Disconnect')",PlayerName(playerid));//playername is my stock for getplayername
mysql_query(log);