01.10.2015, 08:35
Sure
and then you make a callback (a public function with forward)
This is an example of how, where and what commands to use to get information from the mysql, you need to change all your code to match this format, cuz when you make a t(hreaded)query you receive results in a callback, not right after it ( under your code)
PHP код:
mysql_format(mysql, query, sizeof(query),"SELECT * FROM `TableX`");
mysql_tquery(mysql, query, "OnSomethingLoad");
PHP код:
public OnSomethingLoad()
{
new j = cache_get_row_count();
for(new i=0; i < j ; i++)
{
cache_get_field_content(i, "Name", Sth[i][Name], mysql, 30);
Sth[i][Type] = cache_get_field_content_int(i, "Type");
Sth[i][X] = cache_get_field_content_float(i, "X");
}