18.02.2013, 06:46
With the mysql_function_query, you are to do the work in the callback you specify.
Usage of cache, I stole it from an old version of my gamemode with cache. Of course it won't work, just study the functions and make correct usage of them and it should. That is an example!
________________________
Do we have to escape strings in R7 and up?
pawn Код:
mysql_function_query( dbHandle, Query, true, "OnPlayerSampleSQL", "i", playerid );
forward OnPlayerSampleSQL( playerid ); public OnPlayerSampleSQL( playerid ) {
{
new
rows, fields, Field[ 50 ]
;
cache_get_data( rows, fields );
if( rows )
{
cache_get_field_content( 0, "POTATO", Field );
}
return 1;
}
________________________
Do we have to escape strings in R7 and up?