Click() Usr in world problem in Developer Help
|
|
The problem is on line 23 "the Click(mob/M in world) part".
Code problem and info stated below the code.
mob var/online=0 var/uploads=0 var/age=0 var/description="" mob Login() online+=1 Logout() online-=1 Stat() statpanel("Status") stat("Player List","") PlayersRefresh() for (var/mob/P in usr) stat(P) stat("Players Online:","[online]") Click(mob/M in world) src<<"[M.name]" src<<"[M.uploads]" src<<"[M.gender]" src<<"[M.age]" src<<"[M.description]" proc/PlayersRefresh() for (var/mob/P in usr) del P var/mob/A for (A in world) if (A.client) var/mob/P = new(usr) P.name = A.name
|
Code Problem: The problem is, that it comes up with
the following message below, when it is suppose to show the clicked
user's info. for some reason it believes the clicked mob/M is the
statpanel name and this is also stated in the blow content.
runtime error: Cannot read "Status".name
proc name: Click (/mob/Click)
source file: CodeTesting2.dm,23
usr: ElderKain (/mob)
src: ElderKain (/mob)
call stack:
ElderKain (/mob): Click("Status")
~ElderKain~ ElderKain@gmail.com
|