22.11.2010, 17:18
Hey!
I have a problem with my Car system. I wan't to delete table when player write "/sellcar". It is important because car system spawns new cars after RR to the spawnpoint where player bought a car.
Here's code:
(Problem: This code don't delete a car table from MYSQL.. but i need it.)
Sorry about my english
Thanks,
Siim.
I have a problem with my Car system. I wan't to delete table when player write "/sellcar". It is important because car system spawns new cars after RR to the spawnpoint where player bought a car.
Here's code:
Код:
public ConvertToSQLDeleteCar(SQLID, vehid)
{
#define CAR vehicles[vehid]
new query[MAX_QUERY];
UpdateVehicleData(vehid);
format(query, sizeof(query), "DELETE FROM `absoluterp`.`vehicles` WHERE `vehicles`.`vSQLID` = %i LIMIT 1", SQLID);
mysql_query(query);
DestroyVehicle(vehid);
#undef CAR
return 1;
}
Sorry about my english
Thanks,
Siim.

