ID:1746789
 
No Pay Sorry Hope You Still Help


Problem description:
I need help with the coding in my game, heres the problem. When I log in to my game everything is fine, but when I relog into my game my stat tab is gone 0.o for some strange reason. Ive been up for days trying to fix it but I just cant find the problem. Help
Mind showing some code?
In response to WSHGC
Sure do you have a TeamViewer ?
In response to WSHGC
you can code right ?
He means show us the code here, like where things login/logout and save/load and how the stats tab is displayed so we can see what the problem might be.
In response to Zasif
ok i will show you where i think the problem is
In response to Zasif
Might Be Here:
mob/Stat()
if(src.charactername)
src.HudRefresh()
statpanel("Stats")
stat("Name: [src.name]")
stat("Level: [src.level]")
stat("Age: [src.Age]")
stat("Rank: [src.Rank]")
stat("Money: [round(src.money)]")
if(src.afkcaught >= 1)
stat("AFK Counters: [src.afkcaught]")
if(src.sp >= 1)
stat("Battle Points: [src.sp]")
if(src.village!= "")
stat("Village: [src.village]")
if(src.clan!="")
stat("Clan: [src.clan]")
if(src.animalcontract!="")
stat("Animal Contract: [src.animalcontract]")
stat("““““““““““““““““““““““““")
if(src.hearts>1) stat("Hearts: [src.hearts]")
stat("Intelligence: [round(src.iq)]")
stat("Ninjutsu: [round(src.ninjutsu)]")
stat("Genjutsu: [round(src.genjutsu)]")
stat("Taijutsu: [round(src.taijutsu)]")
if(src.doujutsu>=1) stat("Doujutsu: [round(src.doujutsu)]")
if(src.kinjutsu>=1) stat("Kinjutsu: [round(src.kinjutsu)]")
if(src.fuuinjutsu>=1) stat("Fuuinjutsu: [round(src.fuuinjutsu)]")
stat("Taijutsu Defense: [round(src.taidef)]")
stat("Ninjutsu Defense: [round(src.nindef)]")
stat("Genjutsu Resistance: [round(src.gendef)]")
stat("““““““““““““““““““““““““")
stat("Kills: [src.kills]")
stat("Deaths: [src.deaths]")
stat("Reputation: [rep]")
stat("Bounties Collected: [src.Bcount]")
stat("““““““““““““““““““““““““")
stat("Speed Delay: [round(src.speed)]")
stat("Basic Defense: [src.defense]")
stat("Chakra Control: [round(src.ccontrol)]%")
stat("““““““““““““““““““““““““")
if(src.hearts>1) stat("Hearts: [src.hearts]")
stat("Health: [src.hp]/[src.maxhp]")
stat("Stamina: [src.stamina]/[src.maxstamina]")
stat("Chakra: [src.chakra]/[src.maxchakra]")
stat("EXP: [src.exp]/[src.maxexp]")
if(src.CombinationJutsuList.len)
stat("““““““““““““““““““““““““")
stat("Combination Jutsu List")
for(var/f in src.CombinationJutsuList)
stat("[f]")
stat("““““““““““““““““““““““““")
if(src.elementmastery) stat("Learning: [src.currentelementlearning] Element ([src.elementmastery]%)")
stat("Current Element: [src.currentelement]")
stat("»Elements Obtained: [src.Elements.len]")
for(var/A in src.Elements)
stat("»»[A]")
stat("““““““““““““““““““““““““")
stat("Abilities Obtained: [src.Ability.len]")
for(var/A in src.Ability)
stat("»»[A]")
stat("““““““““““““““““““““““““")
stat("Current Support: [src.currentsupport]")
stat("Supports Obtained: [src.Support.len]")
for(var/A in src.Support)
stat("»»[A]")
stat("““““““““““““““““““““““““")
stat("Jutsus Learned: [src.learnedjutsus.len]")
stat("Current Jutsu Type: [src.currentjutsu]")
stat("Jutsus Types Obtained: [src.Jutsus.len]")
for(var/A in src.Jutsus)
stat("»»[A]")
if(src.insquad)
statpanel("Squad")
stat("Squad Members in [src.squadname]")
for(var/mob/M in world)
if(M.squadname == src.squadname)
stat(M)
stat("[M.name]")
stat("Level: [M.level]")
stat("Rank: [M.Rank]")
statpanel("Missions")
stat("Assassinations")
for(var/f in src.Assassination)
stat("[f]")
stat("Retrievals")
for(var/f in src.Retrieve)
stat("[f]")
stat("Escorts")
for(var/f in src.Escort)
stat("[f]")
if(src && src.BodySamples.len)
statpanel("Body Samples")
stat("Body Samples Obtained: [src.BodySamples.len]")
stat("““““““““““““““““““““““““")
for(var/f in src.BodySamples)
stat("[f]")
if(src.organization=="Akatsuki")
statpanel("Missions")
stat("Assassinations")
for(var/f in src.Assassination)
stat("[f]")
stat("Retrievals")
for(var/f in src.Retrieve)
stat("[f]")
stat("Escorts")
for(var/f in src.Escort)
stat("[f]")


if(src && src.Inventory.len) statpanel("Inventory",src.Inventory)
if(src && src.familiars.len)
statpanel("[src.clan=="Puppeteer" ? "Puppets":"Familiars"]")
for(var/mob/A in src.familiars)
if(A.title!="")
stat("»»»»»[A.title]»»»»»")
stat(A)
stat("»»»»»[A.title]»»»»»")
else
stat(A)
if(src.inorganization)
statpanel("[src.organization]")
stat("Goal of [src.organization]")
stat("»»»»»»»»»»»»»»»«««««««««««««««")
if(src.goal!=""||src.goalof!="") stat("[src.goal!="" ? "[src.goal]":""][src.goalof!="" ? "[src.goalof]":""]")
stat("»»»»»»»»»»»»»»»«««««««««««««««")
for(var/mob/M in world)
if(M.organization == src.organization)
if(M.orgleader)
stat("»»»»»»»»»» [M] (Leader of [src.organization])")

else
if(M.orgrecruiter)
stat("»»»»»»»»»» [M] (Recruiter of [src.organization])")
else
stat("»»»»» [M] (Member of [src.organization])")
In response to Zasif
Everyhtings Ok In THis Picture
https://www.sendspace.com/file/6cys0p
And THis Is What Happens When I Relog
https://www.sendspace.com/file/abzg03
Those pictures dont show us anything, see if adding usr.HudRefresh() when you load the game fixes the problem.
In response to Zasif
ok
In response to Zasif
it doesnt work
allington prob the bug is in charactername i will study more this code
zasif is correct,the HudRefresh probably is the problem
In response to Henrique112
ok ill look into it

mob/Stat()
if(src.charactername)

Well here is your problem, If you load the user and doesnt load the charatername ofcourse it wont show its other stats.
In response to Zasif
So what do you think i should do ?
In response to Zasif
hm