[Solved] Getting data into MySQL table easier.
#2

After i, add the location of those variables, since you did not include where they are from. (Ex: CarInfo enum)
pawn Код:
CMD:auto(playerid, params[])
{
    #pragma unused params
    new query[50];
    for(new i = 0; i < 591; i ++)
    {
        format(query, sizeof(query), "INSERT INTO `vehicles` (ID) VALUE (%d,%f,%f,%f,%f,%d,%d,%d)", i,);
        mysql_query(query);
    }
    return 1;
}
Reply


Messages In This Thread
[Solved] Getting data into MySQL table easier. - by Miguel - 23.01.2010, 21:50
Re: Getting data into MySQL table easier. - by Chaprnks - 24.01.2010, 00:53
Re: Getting data into MySQL table easier. - by Miguel - 24.01.2010, 01:15

Forum Jump:


Users browsing this thread: 1 Guest(s)