24.01.2014, 19:13
(
Последний раз редактировалось XxsenchixX; 24.01.2014 в 19:43.
)
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
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 Код:
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;
}
}
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];