I'm not sure if it matters but i belive your missnig a value in the scheduleEvent.. I'm not sure, i haven't really worked with schedulevents but wouldn't it be something like
PHP Code:
scheduleevent(0.03, "OnRot#", 0);
Someone can correct me if im wrong, i've only worked with it a few times.