ID:269312
 
http://www.photodump.com/direct/JustinElizondo/DBs1.jpg

I have A statpanel filled with some objects(as you can see in the screen shot), reprisenting skills(Attack,fly,etc). If you click POWER UP, it calls
        Use_Power_Up(mob/Player/M)
var/mob/Player/P= M
var/Num = input("Power Up to what?")as num
if(Num<=P.PL)
return
if(Num>=P.MaxPL)
return
if(Num==0)
return
P.PL = Num
view() << sound('Aura.wav')
return

When I have 2 people logged into the game, and he tries to use Power Up, it gives me a runtime error. I thought i put the Mob Reference correct..but to no use!
Well, for one thing you don't actually need P here, since M is already defined as the correct type and given the way this is called, you can be pretty sure M will actually be that type. It still can't hurt to start off with "if(!M) return", but otherwise you're fine.

As for why this isn't working, nothing really shows up here. view() and input() are silently defaulting to usr as their frame of reference, but since this is being called by Click() that should match M anyway. For safety I'd make that input(M,...) and view(M), but I don't think that's the problem.

My guess is that something in Click() is behind the bug.

Lummox JR