ID:473121
 
Code:
Mob/admin/verb
GM_room()
Set category = "GM"
Src.loc = locate(21,3,1)


Problem description:

When I use in the game, a runtime error occurs
Undefined variable /client/var/local
proc name: GM room
(/mob/admin/verb/GM_room)
Usr: Ashs999 (/mob/Male_Saiyan)
Src: Ashs999 (/client)
Call stack:
Ashs999 (/client): GM room()
The Src should be src no capitals and how does that not give you a compile error?
Mob should also not be capitalized.
In response to Darker Legends
lol dunno how i missed that and neither should set.
I don't see how I missed that.
Basically yeah, as noted previously, you've spelled mob with a capital M, when it should be lower case. so mob/admin/verb/GM_room().

Given that, can you find in your code all GM_room() procs and post them here, so we can debug this for you if it's still an issue?
Umm.... I had to input this in thru my phone so it capitalized everything.
That's also all my code for the GM room
Somewhere is trying to reference /client/var/local and it's clearly not in this code, so there's some other code being called when you click that verb. Please show us uses the search results for a search of 'client/var/local'
That parrern is not found
could it be
var
list/admins = list("Ashs999")
//maybe?
client
New()
If(key in admins)
Verbs.add(typesof(/mob/admin/verb))
..()
//maybe?
That parrern is not found could it be
var 
list/admins = list("Ashs999")
//maybe?
client
New()
If(key in admins)
Verbs.add(typesof(/mob/admin/verb))
..()
//maybe?
Wow, your phone's auto-correct is really screwing with things ;)

I'm going to go out on a limb and assume "Undefined variable /client/var/local" was actually "Undefined variable /client/var/loc".

The issue appears to be that you are adding a mob's verb to the client. When you execute the verb, the src is a /client (which doesn't have a loc variable) instead of the /mob you expected.

The solution is to add the admin verbs to the mob instead of the client, or to redefine the verbs under /client and reference src.mob.loc instead of src.loc.
Thanks. I fixed my phne so it doesnt correct stuff. But i will do and contact you if that works.