ID:267039
 
im trying to make a symbol ,but this symbol or icon needs to be on the screen, i sort of played around with the onscreeninventory code to get this code, and i keep getting this error: screen_loc (undefined var). I have the icon and everythig, the below code is the code i am currently using,


Inv
icon = 'cc.dmi'
cc
density = 0
layer = MOB_LAYER+10000
New(client/C)
screen_loc = "1,2"

You have to make sure the atom is defined as an atom, and you're never really adding it to the screen:

obj
Inv
cc
icon = 'cc.dmi'
screen_loc = "loc here"//change this, it doesn't even have to be in New()
New(client/C)
C.screen += src

client/New()//when a client connects to a mob
new/obj/Inv/cc(src)//call New() for the obj
In response to Nadrew
ok, no more errors, but when i log into my game the connection closes or failes. By the way, im not trying to make the symbol able to store something like an obj. So the only way for me to make my game start up is to delete this code, got any ideas?
In response to The Conjuror
Oops, you need to add ..() before new/obj/Inn/cc(src) in client/New().
In response to Nadrew
thanks a lot, you saved me a lot o money on asprin, lol. I was desperet, it works now, i just thought id let you know i admire your work and help. THANKS NADREW!