ID:169144
 
mob/Stat()
statpanel("Player")
stat("Playing as: [src.name]")
stat("","Book Bag:")
stat("")
if(!src.contents)
stat("No Items")
else
stat(src.contents)


Okay, I want this to display No items if there is nothing in src.contents however this setup isn't working. Did I miss something?

~>Jiskuha
Simply put. Contents is a list, you would need to check its length.

P.S Done.
In response to Sniper Joe
Sniper Joe wrote:
Simply put. Contents is a list, you would need to check its length.

I would have figured since contents is a list by default anyway I could just do if(!src.contents). Guess not. I actually was going to do this just to check. Thanks.



P.S I didn't steal your game...I seriously didn't know there was one named that. BTW, its a dead project so :)...

What game? >_> I'm not involved with Naruto legends or Streetz =p.

~>Jiskuha
You want statpanel(src.contents), or alternatively statpanel("My Contents", src.contents).