29.05.2009, 07:53
I'm trying to do a vehicle buying system but how can i number of the vehicles?
thanks.
thanks.
AddStaticVehicle(458,1731.3745,1981.2572,10.6907,91.7291,36,5); // AddStaticVehicle(559,1731.0280,1924.9923,10.4767,266.4165,14,2); // AddStaticVehicle(437,1754.6205,1995.7476,10.9536,1.2363,3,0); // AddStaticVehicle(556,1743.3206,1856.1873,11.1952,0.4248,0,0); // AddStaticVehicle(599,2299.0615,2460.2834,3.4579,270.6640,0,1); //
new vehicle; vehicle = GetPlayerVehicleID(playerid); if (vehicle = 1) { AddVehicleComponent(vehicle, 1010); }
if (car == vehicle[100]) { AddVehicleComponent(car, 1010); format(string, sizeof(string), "You Are in car number %s", car); SendClientMessage(playerid,0xFF0000AA,string); }
if (car == vehicle[100])
{
AddVehicleComponent(Vehicle, 1010);
format(string, sizeof(string), "You Are in car number %d", car);
SendClientMessage(playerid,0xFF0000AA,string);
}