ID:178081
 
runtime error: Cannot read null.Points
proc name: End (/mob/proc/End)
usr: Zether (/mob)
src: Zether (/mob)
call stack:
Zether (/mob): End(null)
Zether (/mob): Bump(the point (/obj/point))

mob

Bump(obj/point/O)
if(istype(O,/obj/point))
usr.Points+=3
End()
Gone=1
del(O)


proc/NEW()
if(Gone==1)
new/obj/point
Gone=0
mob
proc
End(mob/M in world)
if(M.Points==45)
world<<"[M] won"
del(world)

Can anyone specify what is wrong
Zether wrote:
usr: Zether (/mob)
src: Zether (/mob)
call stack:

This could be wrong, it would probably be /mob/Zether

mob

Bump(obj/point/O)

U forgot to put "proc" here

proc/NEW()
if(Gone==1)
new/obj/point
Gone=0

This is wrong, I think

Can anyone specify what is wrong

Well i'm no expert but i think this can help u, ^_^ oVo
Zether wrote:
runtime error: Cannot read null.Points
[snip]
Zether (/mob): End(null)
Zether (/mob): Bump(the point (/obj/point))

mob

Bump(obj/point/O)
if(istype(O,/obj/point))
usr.Points+=3
End<font color=red>()</font>
[snip]
End(mob/M in world)
if(M.Points==45)
[snip]

You call the End() proc without an argument. However, you made End() want the argument M. Since it was not given M, it complains about not being able to check the points of M.

Does the mob which bumps into the point get sent to End()? If so, End(src) might be the better call. However, even better would be to remove the M argument from End() and then check src.points.