05.03.2012, 19:51
I started to change my gamemode from dini to SQLite ... I seen much gamemodes and filterscript that uses SQLite ... and i saw: db_free_result( db_query( Database, Query ) ); ... on other i saw just: db_query. And my question is:
If i want to do a simple command, for exemple:
It is better with db_query( Database, query ); , not with db_free_result( db_query( Database, query ) ); ?
If i want to do a simple command, for exemple:
pawn Код:
CMD:command( playerid, params[ ] )
{
new query[ 256 ];
format( query, sizeof( query ), "UPDATE `Database` SET `Exemple` = '%d' WHERE `Name` = '%s'", PlayerName( playerid ) );
db_query( Database, query );
//or db_free_result( db_query( Database, query ) ); ?
//or is the same thing? :))
return 1;