mob/PLAYER/verb/Switch(mob/M)
var/client/MC = M.client
var/client/C = client //Holds the clients in variables, because they will be jumping around.
var/S = M.name //Holding the name
src.iswitching = 1
M.iswitching = 1
M.name = src.name
src.name = S //Swapping the names
MC.mob = null
C.mob = M
MC.mob = src //Switching between the mobs
src.iswitching = 0
M.iswitching = 0
this is my code... and the iswitching is so the people switching won't logout...
now the problem seems to not be the 1st time switching but the 2nd time.....
When I switch with another it switchs just right.. but when the other person switchs back with me I get this
runtime error: Cannot modify null.mob.
proc name: Switch (/mob/PLAYER/verb/Switch)
usr: Shy_guy197 (/mob)
src: Shy_guy197 (/mob)
call stack:
Shy_guy197 (/mob): Switch(Gakumerasara (/mob))
which I think it has something to do with
the MC = null part... I dunno but it is the second time it does it...
if anyone can help out I would like that very much
ID:267229
Jan 20 2003, 4:11 pm
|
|
-Loduwijk