ID:261639
 
im trying to make a symbol that is two c's,but this 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're getting that error because you haven't defined "Inv" as a movable atom (mob or obj). There's also another mistake in your coding (although an understandable one if this is your first time using screen_loc); you need to add src to the client's screen.

With these changes, your code becomes:

<code>obj Inv icon = 'cc.dmi' cc density = 0 layer = MOB_LAYER+10000 New(client/C) screen_loc = "1,2" C.screen+=src //Add it to the client's screen </code>
In response to Crispy
Thanks crispy but i already got the code off of Nadrew in newbie central, he helped me through it, but i appretiate you chipping in.
In response to The Conjuror
Don't double post!!! We get enough traffic on these forums already. Most people who read Newbie Central also read Code Problems, so it won't really help you that much anyway; it just annoys people when they see an IDENTICAL post twice in different places.
In response to Crispy
ok sry