ID:162053
 
I am having trouble i cant see anything wrong with my code if someone helped it would be verry apreciated.

obj
mooc
icon='menu.dmi'
icon_state="ooc"
screen_loc="1,1"
Click()
OOC(msg as text)
world << "b-daplayer [usr]: [msg]"


i get:


menus.dm:8:error: proc definition not allowed inside another proc

i get that 2 times what is wrong please someone help its for a like hud/menu.
obj
mooc
icon='menu.dmi'
icon_state="ooc"
screen_loc="1,1"
Click()
usr.OOC()


mob/proc
OOC(msg as text)
world << "b-daplayer [usr]: [msg]"


That should work! Not sure...
In response to Syntty
Yes, but there shouldn't be usr in a proc. (I'm talking about OOC, not Click)