the errors are
loading MCU Deathmatch.dme
MCU Deathmatch.dm:56:error:B:undefined var
MCU Deathmatch.dm:58:error:B:undefined var
MCU Deathmatch.dmb - 2 errors, 0 warnings (double-click on an error to jump to it)
mob/verb/fire()//You can fire at walls
if(usr.ammo >=1)
usr.ammo-=1
new/obj/bullet(usr.loc)//makes a bullet
for(var/obj/bullet/B in usr.loc)
walk(B,usr.dir,0)//moves the bullet
sleep(30)
del(B)//No need for it after a few seconds.
else
alert("You are out of ammunition!!!")
could you please fix it or tell me what is wrong with it.
ID:148947
![]() Aug 7 2002, 10:41 pm
|
|
should be
var/obj/bullet/B = new(usr.loc)//makes a bullet