Hi its me kalzimere again lol. Ok heres my proplem, i want to have a teleporter but i want a menu to pop up so i assumed that i connected a proc to the turf i made. It looks like this:
chair1
icon_state = "chair1"
DblClick(mob/proc/matchair())
density = 1
opacity = 1
I get no errors when i compile it so i thought it would work. But when i went in the game and double cliked the chair the menu didn't pop up. I also tried it this way:
chair1
icon_state = "chair1"
DblClick()
mob/proc/matchair()
density = 1
opacity = 1
But i get an error that looks like this:
loading MatrixRpg.dme
maincode.dm:281:error:mob/proc/matchair:bad var
MatrixRpg.dmb - 1 error, 0 warnings
Any help would be deeply apreciated thanks.
-kalzimere
ID:150399
Oct 4 2001, 10:41 am
|
|
In response to Foomer
|
|
with the procs at the end, so they don't get confused as variables for the object. Actually, the order is unimportant, unless you like being organised. The problem here is that he is running a proc improperly. obj chair1 DblClick() usr.matchair() //procs must be run by variables - in this case, by the person who double-clicked |
icon_state = "chair1"
DblClick()
mob/proc/matchair()
density = 1
opacity = 1
try setting it up like this...
chair1
icon_state = "chair1"
density = 1
opacity = 1
DblClick()
mob/proc/matchair()
with the procs at the end, so they don't get confused as variables for the object.