Mysql r35 help!
#1

Hello guys , i want to ask a question about MySQL R35 or lower versions (r7+), i have vehicle system on r6 and older i need to convert that to r35
pawn Код:
stock LoadVehicles()
{
    new Query[255], id;
    format(Query, sizeof(Query), "SELECT * FROM vehicles");
    mysql_query(Query);
    mysql_store_result();
    while(mysql_fetch_row(Query,"|"))
    {
        id = LoadedInfo[Vehicles];
        sscanf(Query, "p<|>e<is[25]iiffff>", VehicleInfo[id]);
        new Color1 = random(126); new Color2 = random(126);
        CreateVehicle(VehicleInfo[id][Model],VehicleInfo[id][Pos][X],VehicleInfo[id][Pos][Y],VehicleInfo[id][Pos][Z],VehicleInfo[id][Pos][R],Color1,Color2, 60*10000);
        LoadedInfo[Vehicles] = LoadedInfo[Vehicles] + 1;
    }
}
What is the functions of mysql r35 ( instead of mysql_fetch_row , mysql_store_result)..
Thanks!

And here is my vehicle enum (if needed)
pawn Код:
enum vInfo
{
     Id,
     Owner[25],
     Model,
     Price,
     Float:cx,
     Float:cy,
     Float:cz,
     Float:cr
}
new VehicleInfo[MAX_VEHICLES][vInfo];
Reply


Messages In This Thread
Mysql r35 help! - by XxsenchixX - 24.01.2014, 19:13
Re: Mysql r35 help! - by HuSs3n - 24.01.2014, 19:20
Re: Mysql r35 help! - by XxsenchixX - 24.01.2014, 19:22
Re: Mysql r35 help! - by iZN - 24.01.2014, 19:26
Re: Mysql r35 help! - by XxsenchixX - 24.01.2014, 19:27
Re: Mysql r35 help! - by XxsenchixX - 24.01.2014, 19:32
Re: Mysql r35 help! - by HuSs3n - 24.01.2014, 19:45

Forum Jump:


Users browsing this thread: 3 Guest(s)