31.07.2011, 21:26
im trying to reload the bought vehicles with /reload but the command return as invalid "SERVER: Unknown Command"
pawn Код:
CMD:reload(playerid,params[])
{
Loop(MAX_OV,v)
{
if(strlen(VehicleData[getVehicleID(v)][Vehicleowner]) >= 3)
{
DestroyVehicle(getVehicleID(v));
printf("Vehicle ID: %d |> Removed!", v);
}
return 1;
}
LoadOwnedVehicles();
return 1;
}
stock getVehicleID(vehicleid)
{
Loop(MAX_VEHICLES, vID)
{
if(VehicleData[vID][VehicleID] == vehicleid)
{
return vID;
}
}
return -1;
}