PHP код:
mysql_function_query(1, "SELECT * FROM `objects`", true, "LoadObjects","");
Содержимое загрузки объектов (LoadObjects):
PHP код:
new temp[30], rows, fields;
cache_get_data(rows, fields);
if(rows)
{
for(new idx; idx < rows; idx++)
{
O[Model] = cache_get_field_content_int(idx, "Model");
cache_get_field_content(idx, "O[foX]", temp); O[foX] = floatstr(temp);
cache_get_field_content(idx, "O[foY]", temp); O[foY] = floatstr(temp);
cache_get_field_content(idx, "O[foZ]", temp); O[foZ] = floatstr(temp);
cache_get_field_content(idx, "O[roX]", temp); O[roX] = floatstr(temp);
cache_get_field_content(idx, "O[roY]", temp); O[roY] = floatstr(temp);
cache_get_field_content(idx, "O[roZ]", temp); O[roZ] = floatstr(temp);
CreateObject(O[Model], O[foX], O[foY], O[foZ], O[roX], O[roY], O[roZ], 500000.0);
return 1;
}
}