ID:149514
 
proc
Myproc()
if(src.str > 4)
src << "Your strength is greater than 4"
else
src << "Your strength is less than 4"
deathcheck()
if(src.hp <= 0)
view() << "[src] dies!"
src.hp = 10
src.Move(locate(1,1,1))
usr.def += 1 <--zack.dm:39:error: bad argument definition

usr.str += 1

look at that error can u help me how to fix it
Try this(It was indented wrong):

mob
proc
Myproc()
if(src.str > 4)
src << "Your strength is greater than 4"
else
src << "Your strength is less than 4"
deathcheck()
if(src.hp <= 0)
view() << "[src] dies!"
src.hp = 10
src.Move(locate(1,1,1))
usr.def += 1
usr.str += 1


Tell me if that works.

-Kappa the Imp


In response to Kappa the Imp
zack.dm:32: Inconsistent indentation.

that error comes with every code and i hawe to delete on Tab space to fix it and also if i put your code in the bad argument (whatever) error does not disapear
In response to Ashcool
look can u yust tell me what the error IS so i can figure out how to fix it so i know what i did wrong
In response to Ashcool
PLEASE help me PLEASE
In response to Ashcool
I appreciate that you may have a need for some help. However, what you are doing is wrong. Please do not bump your posts up. At least wait a day and give people some time to answer.

I have answered this post rather than your bumps in the hopes that you can delete your bumps before someone replies to them.

Thank you.