12.06.2013, 00:46
Here's the code...
When I do it, it just says the string but it doesn't actually delete the car.
Код:
CMD:destroycdveh(playerid, params[]) { if (PlayerInfo[playerid][pAdmin] < 1337) { SendClientMessageEx(playerid, COLOR_GREY, " You are not allowed to use this command."); return 1; } new string[128], vehid; if(sscanf(params, "d", vehid)) return SendClientMessageEx(playerid, COLOR_WHITE, "USAGE: /destroycdveh [vehicleid]"); DestroyCarDealershipVehicle(GetCarDealershipId(vehid), GetCarDealershipVehicleId(vehid)); SavecDealership(GetCarDealershipId(vehid)); format(string, sizeof(string), " SYSTEM: Car dealership vehicle destroyed (ID %d)", vehid); SendClientMessageEx(playerid, COLOR_GRAD1, string); return 1; }
When I do it, it just says the string but it doesn't actually delete the car.