11.01.2011, 17:42
or rather, SQLite. It's local so you don't have to get a SQL Server host and it doesn't get internet lag.
Also, it comes with samp server so you don't need to download a plugin
Also, it comes with samp server so you don't need to download a plugin
pawn Код:
new tmp[32];
new pname[24];
new DBResult:result=db_query(Database,"SELECT Name, Score FROM Players ORDER BY Score DESC");
db_get_field(result,0,pname,24);
db_get_field(result,1,tmp,64);
printf("%s has the highest score of %d",pname,strval(tmp));