Wood_Wall
icon = 'Turfs.dmi'
icon_state = "Wood Wall"
Health = 100
density = 1
New()
..()
if(src.Health<=1)
icon_state = "BWW"
it says Health is an underfined var when it is defined.How do i fix it?
ID:270378
Apr 9 2006, 10:06 am
|
|
Wood_Wall it says Health is an underfined var when it is defined.How do i fix it? |
Apr 9 2006, 10:08 am
|
|
can you show us how you defined health
|
use:
var/Health = 100
This declairs Heath as a variable. Otherwise you are just spouting nonsence at the compiler, as far as it can see at least. |
In response to Scoobert
|
|
but he said that he had it defined so lets see if he difined it anywhere
|
In response to Scoobert
|
|
thanks scoobert.obviously i had to define it again as a var for that obj
|