ID:146274
 
Code:
mob

Stat()
if(showbuild)//Pass if showbuild is anything but null, 0, or ""
statpanel("Build")//Stat pannel name
stat(src,Click(/mob/proc/Red_Wall))
stat(src,Click(/mob/proc/Red_X_Wall))

var
const
showbuild = 1

mob
proc
Red_Wall()
if(usr.build==1)
var/W = new/obj/walls/Red_Wall(usr.loc)//makes a wall in the usr's loc.
W:owner = "[usr.key]"//makes the walls owner the usr's key.
else
usr << "You can't build here"
Red_X_Wall()
if(usr.build==1)
var/W = new/obj/walls/Red_X_Wall(usr.loc)//makes a wall in the usr's loc.
W:owner = "[usr.key]"//makes the walls owner the usr's key.
else
usr << "You can't build here"


Problem description:When I am playing the game the build tab is there but there is nothing in it

Um, why are you trying to call Click() from inside a stat() call? Click() is a user action; you shouldn't be calling it here.

Lummox JR
In response to Lummox JR (#1)
So then what do i need to put to so i can see the icon in the build tab and when i click it it does the proc?
someone please help me?
In response to Y2kEric (#2)
mob/var/obj/walls/Red_Wall/redwall

obj
walls

Red_Wall
icon = 'house.dmi'
icon_state = "redwall"
owner
Click()
Red_Wall()
obj
proc
Red_Wall()
if(usr.build==1)
src.Move(usr.loc)
src.owner = "[usr.key]"//makes the walls owner the usr's key.
else
usr << "You can't build here"

mob
Stat()
statpanel("Build")
stat("Red Wall",redwall)
mob/Login()
redwall = new


I believe this is what you wanted.
In response to Peckerwd (#3)
Thanks Alot