Quote:
Originally Posted by Viniborn
Maybe it can help you
pawn Код:
//Top new LastCarCreated = -1;
// /v LastCarCreated = CreateVehicle(veh, x, y, z, 0, -1, -1, 0);
pawn Код:
CMD:v(playerid, params[]) { if(LastCarCreated == -1) SendClientMessage(playerid, COLOR_YELLOW, "No car created");
DestroyVehicle(LastCarCreated); SendClientMessage(playerid, COLOR_YELLOW, "You deleted the last created car."); LastCarCreated = -1; return true; }
|
Thanks how about the
" Invalid VehicleID " issue?
i try what Jonny5 says it didn't work but when i try the valid vehicle id it spawns normal
except when i type /v 0 it says
"You've spawned vehicle id '0'"