ID:1938543
 
(See the best response by Lummox JR.)
Code:
obj
sword
Get()
set src in oview(1)
usr.contents += src
view() <<" [usr] picks up a /a [src]"

Drop()
new/obj/sword(usr.loc)
view() <<"[usr] drops a /a [src]"
del(src)

Equip()
if(usr.weapon_equipped == 0)
usr.str += 2
usr.weapon_equipped = 1
view() <<"[usr] equips a Sword!"
usr.verbs += /mob/attacks/verbs/Almighty_Slash
else
usr <<"You're already weilding something"


Unequip()
if(usr.weapon_equipped == 1)
usr.str -= 2
usr.weapon_equipped = 0
else
usr <<"You aren't weilding this..."


armor
Get()
set src in oview(1)
usr.contents += src
view() <<"[usr] picks up a [src]"

Drop()
new/obj/armor(usr.loc)
view() <<" [usr] drops a [src]"
del(src)

Equip()
if(usr.armor_equipped == 0) //if the armor is not on
usr.str += 2 //it gives more strength
usr.armor_equipped = 1 // and gets equipped
view() <<"[usr] equips a \a [src]"
else
usr <<"You already have your armor on!"

Unequip()
if(usr.armor_equipped == 1) // if the armor is on
usr.str -= 2
usr.armor_equipped = 0
else
usr <<"You aren't wearing it..."


Problem description:I keep getting compile errors when I try to compile this code. Could someone please explain to me what's wrong? I'm sure that I coded everything correctly cause from when I started adding this code, I kept getting compiling errors from Give/Drop/Equip/Unequip as undefined procs but I got 0 errors before. Please help me and I'd appreciate it. ^^ (Sorry for not commenting,a bit new at this. :/)

Best response
Your armor_equipped and weapon_equipped cars are wrong. The value of each car should be the armor or weapon object in use, respectively, and null if the slot has nothing equipped.
Do ctrl + L to show Lines numbers in Dream Maker, and also post the runtime error you get and the line it happens on.

Lummox read my pager message.
Thank you so much, it worked. ^^
Ctrl+G is got line as well.