A_MYSQL Issue
#5

Quote:
Originally Posted by Isolated
Посмотреть сообщение
Either try the first line, before the format on one line, then the format on the bottom, or strcat.
Okay so I got them to save now and everything else. Just the loading seems to be failing, and I truely have no idea whats wrong, Still a noob, and getting used to SQL, I'd really love any help

pawn Код:
public LoadCar()
{
    new row[4000], carid;
    for(new idx = 1; idx < sizeof(CarInfo) ; idx++)
    {
        mysql_query("SELECT * FROM ownedcars");
        mysql_store_result();
        while(mysql_retrieve_row())
        {
            mysql_fetch_row(row);
            carid ++;
            sscanf(row, "p<|>e<ddffffiis[60]ddds[60]dddddddddddddddd>", CarInfo[carid]);
        }
        mysql_free_result();
    }
    printf("[MYSQL-DATABASE]: Loaded %d Owned Vehicles.", carid);
    return 1;
}
It says there's 0 loaded cars, there's 2 rows of cars in the database.

Any idea why that doesn't load them with the sscanf?
Reply


Messages In This Thread
A_MYSQL Issue - by UnknownGamer - 30.09.2013, 22:28
Re: A_MYSQL Issue - by BlackBank - 30.09.2013, 22:33
Re: A_MYSQL Issue - by UnknownGamer - 30.09.2013, 22:37
Re: A_MYSQL Issue - by Isolated - 30.09.2013, 22:46
Re: A_MYSQL Issue - by UnknownGamer - 30.09.2013, 23:37
Re: A_MYSQL Issue - by Jefff - 01.10.2013, 00:23
Re: A_MYSQL Issue - by UnknownGamer - 01.10.2013, 00:26
Re: A_MYSQL Issue - by Jefff - 01.10.2013, 00:29
Re: A_MYSQL Issue - by UnknownGamer - 01.10.2013, 00:31
Re: A_MYSQL Issue - by Jefff - 01.10.2013, 00:51

Forum Jump:


Users browsing this thread: 4 Guest(s)