ID:142272
 
Code:
mob
proc
updateHealth()
var/percent=round(src.HP/src.MHP*100,10)
if(percent>100) percent=100
if(percent<0) percent=0
for(var/obj/hudMeters/o in src.client.screen)
o.icon_state=num2text(percent)
spawn(10)
src.updateHealth()
obj
hudMeters
health_01
icon='meter_01.dmi'
icon_state="0"
New(client/c)
screen_loc="10,11"
c.screen+=src
health_02
icon='meter_02.dmi'
icon_state="0"
New(client/c)
screen_loc="11,11"
c.screen+=src


Problem description:

I want to add HUD to my game but when i am adding this thing up byond returns errors:
world.dmp:1160:error: invalid variable name: move
world.dmp:1162:error: invalid variable name: move
world.dmp:1179:error: invalid variable name: move
world.dmp:1180:error: invalid variable name: move

Do you guys have idea whats wrong here?
You attempted to use the move variable somehwere in your unposted code and you didn't define it before doing so.
In response to Glarfugus
But when i take this code to comments
/*mob
proc
updateHealth()
var/percent=round(src.HP/src.MHP*100,10)
if(percent>100) percent=100
if(percent<0) percent=0
for(var/obj/hudMeters/o in src.client.screen)
o.icon_state=num2text(percent)
spawn(10)
src.updateHealth()
obj
hudMeters
health_01
icon='meter_01.dmi'
icon_state="0"
New(client/c)
screen_loc="10,11"
c.screen+=src
health_02
icon='meter_02.dmi'
icon_state="0"
New(client/c)
screen_loc="11,11"
c.screen+=src*/

Everything is good. and i didnt attempted to use 'move'
In response to FiveUSSJ
Press Ctrl+F to use the Find function and search for "move".
In response to Jemai1
but what is the sense of it? i have alot of 'move's in my code.
In response to FiveUSSJ
FiveUSSJ wrote:
but what is the sense of it?

The sense of it? You won't be able to fix it if you would do nothing. The error is not on those codes. It might be near those codes but not inside it.

i have alot of 'move's in my code.

So what?
In response to Jemai1
but do you rode my first post?i wrote that error disapears when i am deleting this part of code.
In response to FiveUSSJ
FiveUSSJ wrote:
but do you rode my first post?

Yes, I did. How about you? Did you do what I advised?

i wrote that error disapears when i am deleting this part of code.

The deleted part of the code might be misplaced inside another code. In other words, the deleted code splits another code - the reason why the error disappears when you remove it.
In response to Jemai1
so what can i do with this?
In response to FiveUSSJ
Try doing what you're told before you try to do something else. He knows what he's doing, apparently a lot better than you do.
In response to Kaiochao
cool but how can i know whe i find this good 'move' ?
In response to FiveUSSJ
Not matter, i opened my map in notepad and deleted all "moves". Now all working ^^ Topic to close i think.