Így sem jó. Azóta már megtaláltam a megoldást.
#include <a_samp>
#include <a_mysql> // R39-2
new MySQL;
public OnFilterScriptInit()
{
mysql_log(LOG_ALL);
MySQL = mysql_connect(\"******\", \"******\", \"******\", \"****\");
mysql_function_query(MySQL, \"SELECT * FROM `object` WHERE 1\", true, \"OnObjectsLoaded\", \"\");
return 1;
}
forward OnObjectsLoaded();
public OnObjectsLoaded()
{
new rows, fields;
cache_get_data(rows, fields);
printf(\"There are %d players with the same name.\", rows);
return 1;
}