It sounds like you may have fallen asleep finally- staying up all night from pure MDMA is possible, but feeling dizzy coupled with that may be an indicator of other things in your pills. I can't tell from you subject if you are indicating you took "amp" "reamp" or what- feel free to re-post once you can explain if you'd like advice.
We do not ID pills here, or guess what was in them- but if you're feeling out of it, the best option is sometimes just to wait to sleep. 5-htp is beneficial for regenerating serotonin as well.