cocaine.
STAY HYDRATED. It probably doesn't help you stay awake but when you're in a routine of drinking x amount of water a day, then sleep, but you skp the sleep process, you forget to hydrate. This used to happen all the time at all nighters for me. Keep up the water intake.