SQL Error
#2

pawn Код:
public LoadCar()
{
    new file[26];
    for(new idx = 1; idx < sizeof(CarInfo) ; idx++)
    {
        format(file, sizeof(file),"SELECT * from `ownedcars` WHERE `id`=%d LIMIT 1;", idx)
        mysql_query(file);
        mysql_store_result();
        CarInfo[idx][cModel] = mysql_fetch_field_row("Model", file);
You can change the `id` to whatever you have registering the ID of whichever owneed car it is.
Reply


Messages In This Thread
SQL Error - by UnknownGamer - 24.05.2013, 01:14
Re: SQL Error - by Hernando - 24.05.2013, 01:29
Re: SQL Error - by UnknownGamer - 24.05.2013, 01:34
Re: SQL Error - by Hernando - 24.05.2013, 01:46
Re: SQL Error - by UnknownGamer - 24.05.2013, 01:54
Re: SQL Error - by Vince - 24.05.2013, 07:41
Re: SQL Error - by UnknownGamer - 24.05.2013, 11:11
Re: SQL Error - by UnknownGamer - 24.05.2013, 12:11

Forum Jump:


Users browsing this thread: 1 Guest(s)