when i start the truck it is ok but when i start drivin the oil gauge starts goin all over the dash an finally goes to empty but when i took the dipstick out it was full an the check engine light comes on
Could be the oil pump, or the sending unit for the gauge.
What engine is it?
If the CEL comes on, have you checked to see if any codes have been stored in the ECM?