05.05.2012, 06:21
(
Последний раз редактировалось Sphex; 05.05.2012 в 09:58.
)
nvm, succeeded.
new str[256];
format(query, sizeof(query), "SELECT `owned`,`ownername`,`sellprice` FROM `houses` WHERE `hosueid` = '%d'", x);
mysql_query(query);
mysql_store_result();
if(mysql_num_rows()!=0)
{
if(mysql_fetch_row_format(str))
{
sscanf(str, "p<|>dsd",hInfo[x][howned],hInfo[x][hownername],hInfo[x][hsellprice]);
}
}
mysql_free_result();