room_get_id
returns the id of the room with the given name
if the room does not exists, returns -1
Source code
//if you have more then room count change this value
var i, room_count;
room_count=100;
for(i=0;i<room_count;i+=1){
if(room_get_name(i)==argument0) return i;
}
return -1;