PHP код:
new rows, Fields;
new komanda[126], admin, imeig[126], toggle;
mysql_format(MySQL, Query, sizeof(Query), "SELECT * FROM `komande` WHERE `komanda` = `%s`", cmdtext);
mysql_query(MySQL, Query);
cache_get_data(rows, Fields);
if(rows) {
new tmp[130];
//cache_get_field_content(0, "ID", tmp);
//id = strval(tmp);
cache_get_field_content(0, "komanda", tmp);
format(komanda, 126, "%s", tmp);
cache_get_field_content(0, "admin", tmp);
admin = strval(tmp);
cache_get_field_content(0, "igrac", tmp);
format(imeig, 126, "%s", tmp);
cache_get_field_content(0, "toggle", tmp);
toggle = strval(tmp);
}