ID:142481
 
Code:
mob/Stat()
stat("karma:",src.desc)
if(src == usr) statpanel("inventory",src.contents)
stat("----------",src.desc)
if(src == usr) statpanel("inventory",src.contents)
stat("level:",src.desc)
if(src == usr) statpanel("inventory",src.contents)
stat("exp:",src.desc)
if(src == usr) statpanel("inventory",src.contents)
stat("training points:",src.desc)
if(src == usr) statpanel("inventory",src.contents)
stat("----------",src.desc)
if(src == usr) statpanel("inventory",src.contents)
stat("powerlevel:",src.desc)
if(src == usr) statpanel("inventory",src.contents)
stat("ki:",src.desc)
if(src == usr) statpanel("inventory",src.contents)
stat("strength:",src.desc)
if(src == usr) statpanel("inventory",src.contents)
stat("defence:",src.desc)
if(src == usr) statpanel("inventory",src.contents)
stat("----------",src.desc)
if(src == usr) statpanel("inventory",src.contents)
stat("rage:",src.desc)
if(src == usr) statpanel("inventory",src.contents)
stat("fatituge:",src.desc)
if(src == usr) statpanel("inventory",src.contents)
stat("energy code:",src.desc)
if(src == usr) statpanel("inventory",src.contents)
stat("earth wishes:",src.desc)
if(src == usr) statpanel("inventory",src.contents)
stat("namek wishes:",src.desc)
if(src == usr) statpanel("inventory",src.contents)


Problem description:

I need help it wont show the stat numbers it just looks like this

karma:
----------
level:
exp:
trainingpoints:
----------
powerlevel:
ki:
strength:
defence:
----------
rage:
fatituge:
energy
code:
earthwishes:
namek:
wishes:



that code sucks o.o
first off get rid of every line that says
if(src == usr) statpanel("inventory",src.contents)


and 2nd off, you have it displaying src.desc for everything instead of any actual variables
mob/Stat()
statpanel(src)
stat("karma:",src.karma)
stat("----------")
stat("level:",src.level)
stat("exp:",src.exp)
stat("training points:",src.training_points)
stat("----------")
stat("powerlevel:",src.powerlevel)
stat("ki:",src.ki)
stat("strength:",src.strength)
stat("defence:",src.defence)//defense
stat("----------")
stat("rage:",src.rage)
stat("fatituge:",src.fatituge)//fatigue
stat("energy code:",src.energy_code)
stat("earth wishes:",src.earth_wishes)
stat("namek wishes:",src.namek_wishes)


I have no idea what you are trying to do with:
if(src == usr) statpanel("inventory",src.contents)
In response to SuperAntx
i did it but it still doesnt work
it says

Missing expression
Missing expresion
---------------------------------
should it look like this?
mob/var
karma = 0%
mob/Stat()
stat("good/evil_karma",good/evil_karma)
statpanel("stats",contents)
mob/var
level = 0
mob/Stat()
stat("level",level)
statpanel("stats",contents)
mob/var
exp = 0
mob/Stat()
stat("exp",exp)
statpanel("stats",contents)
mob/var
traning_points = 0
mob/Stat()
stat("training_points",health)
statpanel("stats",contents)
mob/var
Powerlevel: = 100
mob/Stat()
stat("powerlevel:",health)
statpanel("stats",contents)
mob/var
ki = 100
mob/Stat()
stat("ki",ki)
statpanel("stats",contents)
mob/var
strength = 100
mob/Stat()
stat("strength",strength)
statpanel("stats",contents)
mob/var
defence = 100
mob/Stat()
stat("defence",defence)
statpanel("stats",contents)
mob/var
rage = 0%
mob/Stat()
stat("rage",rage)
statpanel("stats",contents)
mob/var
energycode = 100
mob/Stat()
stat("engery_code",enrergy_code)
statpanel("stats",contents)
mob/Stat()
statpanel(src)
stat("karma:",src.karma)
stat("----------")
stat("level:",src.level)
stat("exp:",src.exp)
stat("training_points:",src.training_points)
stat("----------")
stat("powerlevel:",src.powerlevel)
stat("ki:",src.ki)
stat("strength:",src.strength)
stat("defence:",src.defence)//defense
stat("----------")
stat("rage:",src.rage)
stat("fatituge:",src.fatituge)//fatigue
stat("energy_code:",src.energy_code)
stat("earth_wishes:",src.earth_wishes)
stat("namek_wishes:",src.namek_wishes)
In response to Babyboo1578
your formatting makes me want to smack you <.<

mob/var
karma = 0%//you cant put a % here
mob/Stat()
//you have no statpanel set
stat("good/evil_karma",good/evil_karma)
//this will work, but it wont display like you want it to

you cant have multiple Stat(), at least not without ..(), which would be pointless here
In response to Babyboo1578
mob/var
karma = 0
level = 0
exp = 0
traning_points = 0
Powerlevel = 100
ki = 100
strength = 100
defence = 100
rage = 0
energycode = 100

//i assume you already have the below variables somewhere
fatituge//not spelled correctly
energy_code
earth_wishes
namek_wishes
training_points//set above, spelled wrong there <.<
powerlevel

mob/Stat()
statpanel(src.name)
stat("karma:",src.karma)
stat("----------")
stat("level:",src.level)
stat("exp:",src.exp)
stat("training points:",src.training_points)
stat("----------")
stat("powerlevel:",src.powerlevel)
stat("ki:",src.ki)
stat("strength:",src.strength)
stat("defence:",src.defence)
stat("----------")
stat("rage:",src.rage)
stat("fatigue:",src.fatituge)
stat("energy code:",src.energy_code)
stat("earth wishes:",src.earth_wishes)
stat("namek wishes:",src.namek_wishes)