24.05.2013, 01:14
pawn Код:
public LoadCar()
{
new file[26];
for(new idx = 1; idx < sizeof(CarInfo) ; idx++)
{
format(file, sizeof(file),"SELECT * from `ownedcars`", idx)
mysql_query(file);
CarInfo[idx][cModel] = mysql_fetch_field_row("Model", file);
pawn Код:
[02:11:25] >> mysql_query( Connection handle: 1 )
[02:11:25] CMySQLHandler::Query(SELECT * from `ownedcars`) - Successfully executed.
[02:11:25] >> mysql_fetch_field_row( Connection handle: 1 )
[02:11:25] CMySQLHandler::FetchField(SELECT * from `ownedcars`) - You cannot call this function now. (Reason: Fields/Rows are empty.)