SQL Query Failure
#6

Got that done, The cars save perfectly now. The loading is the issue... There's 2 rows in DB atm.

pawn Код:
public LoadCar()
{
    new query[90], rows;
    format(query, sizeof(query),"SELECT COUNT(*) FROM ownedcars");
    mysql_query(query);
    mysql_store_result();
    rows = mysql_num_rows();
    printf("[MYSQL-DATABASE]: Loaded %d Vehicles (Dynamic)", rows);
    mysql_free_result();
    return 1;
}
That shows there's 0 Vehicles loading. That's the most basic loading function I know for it to count, what's wrong there?
Reply


Messages In This Thread
SQL Query Failure - by UnknownGamer - 02.10.2013, 00:13
Re: SQL Query Failure - by arakuta - 02.10.2013, 00:17
Re: SQL Query Failure - by UnknownGamer - 02.10.2013, 00:19
Re: SQL Query Failure - by Jefff - 02.10.2013, 00:24
Re: SQL Query Failure - by xganyx - 02.10.2013, 03:17
Re: SQL Query Failure - by UnknownGamer - 02.10.2013, 04:39

Forum Jump:


Users browsing this thread: 1 Guest(s)