Perhaps it is not loading the tiledefs right then, you should try debugging it with some echo() in the playerenters
ie:
PHP Code:
function onPlayerEnters(){
echo("welcome to the room");
}
enter the room normally and by logging on and appearing in that room and seeing if it echo's that
btw, echo is your best friend for debugging, use it.