partywho()
set category = "Party"
var/obj/parties/p
var/obj/parties/P
for(p in worldparties)
if(p.name == src.party)
P = p
if(P)
src << "<b><font color=#0033AA size=1>[src.party]</b></font>"
for(var/mob/M in P.members)
if(P in world)
src << "<font color=#0033AA size=1>\icon[M][html_encode(M)]([M.key]) Class: [M.class] Level: [M.level] Experience: [M.exp]/[M.maxexp]"
else
src << "<font color=#0033AA size=1> [M] (Currently Offline)"
else
src << "Party not found!"
Thanks in Advance,
Unknown Person <<
if (p.name == src.party)
Question... did you actually set src.party equal to the name of the party, or to the party itself? One is a string of text, the other is an actual party obj.
It won't ever find any party whose name is equal to an obj!
Also, if you do have a var that's == to the party object, why search a list?
partywho()
if (src.party)
for (var/mob/m in src.party.members)
src << "Blah blah blah"
else
src << "You have no party."