ID:146685
 
Code:
client
Northwest()
if(!src.clips)
src << "You have no clips left!"
return
else
usr.Reload()


Problem description:
The usr there is a /mob/pc/[name], problem is, every time I compile it tells me that usr.Reload() hasn't been defined, I need some way of identifying the person that's trying to reload while skipping the bloody usr

mob/pc/proc/Reload(obj/Inventory/Equipment/E)
if(!istype(E) || !E.AllowUnequip() || src.vars["[E.identifier]"]!=E)
return 0
if(E.bullets == E.maxbullets)
usr << "You do not need to reload"
return
E.bullets = E.maxbullets
usr << "You reload your [E]!"


There's the reload proc just in case that helps you help me...
Use src!

You're abusing usr anyway. To find out what's wrong with using usr in this situation, read the usr lecture.
In response to Wizkidd0123
The problem with src is that src in this case is /client, where as the function and inventory have been defined in /mob/pc... I don't want to use usr, but I can see no way around it, and it still won't let me call that proc....
In response to Fartmonger
Fartmonger wrote:
The problem with src is that src in this case is /client, where as the function and inventory have been defined in /mob/pc

Then use client.mob!
In response to Wizkidd0123
Like this?
var/mob/pc/M = src.mob
M.Reload()


Just wanna know if I'm calling the proc right, cause it still doesn't work, and I'd like to eliminate it as an error