25.06.2012, 17:37
Try the function below:
pawn Код:
stock LoadBusinessInfo(iBusiness)
{
new Query[700];
format(Query, 128, "SELECT * FROM businessinfo WHERE `business_id_field_name` = '%d'", iBusiness);
mysql_query(Query);
mysql_store_result();
while(mysql_fetch_row(Query))
{
sscanf(Query, "p<|>e<dfffs[28]s[24]dddddfff>", BVar[iBusiness]);
}
mysql_free_result();
return 1;
}