15.07.2018, 15:42
This should work.
PHP код:
mysql_tquery(g_SQL, "SELECT * FROM `usertest` WHERE `name` = 'Dave'", "SeifSelectCallback");
forward SeifSelectCallback();
public SeifSelectCallback()
{
new id, name[25];
if (cache_num_rows())
{
cache_get_value_name_int(0, "id", id);
cache_get_value_name(0, "name", name, sizeof(name));
}
printf("ID: %d, Name: %s", id, name);
return 1;
}