Re: Hp/Ap in ScoreTable !
%d (int)
But it won't update lol. It will show all as your hp/ap. you gotta use ZCharacter class :
ZCharacter* pChar = ZGetGame()->m_pMyCharacter;
pChar->GetHP(); plus you gotta add it as pItem like kills, death, exp, etc to make it update
Re: Hp/Ap in ScoreTable !
Quote:
Originally Posted by
qet123
%d (int)
But it won't update lol. It will show all as your hp/ap. you gotta use ZCharacter class :
ZCharacter* pChar = ZGetGame()->m_pMyCharacter;
pChar->GetHP(); plus you gotta add it as pItem like kills, death, exp, etc to make it update
if u dont mind , can u just pm me the full code for it... LOL my HP/AP is showing 1036999 in scoretaable xD
Re: Hp/Ap in ScoreTable !
Quote:
Originally Posted by
Ronny786
if u dont mind , can u just pm me the full code for it... LOL my HP/AP is showing 1036999 in scoretaable xD
Just see how kills, death coded.
Re: Hp/Ap in ScoreTable !
Quote:
Originally Posted by
qet123
%d (int)
But it won't update lol. It will show all as your hp/ap. you gotta use ZCharacter class :
ZCharacter* pChar = ZGetGame()->m_pMyCharacter;
pChar->GetHP(); plus you gotta add it as pItem like kills, death, exp, etc to make it update
That's because ZCharacter and ZMyCharacter are different classes.
Quote:
Originally Posted by
Ronny786
if u dont mind , can u just pm me the full code for it... LOL my HP/AP is showing 1036999 in scoretaable xD
You need to typecast the floats to integers.
Re: Hp/Ap in ScoreTable !
Quote:
Originally Posted by
Vusion
That's because ZCharacter and ZMyCharacter are different classes.
You need to typecast the floats to integers.
I know that, you can see that i wrote he gotta use ZCharacter class.
Re: Hp/Ap in ScoreTable !
Quote:
Originally Posted by
qet123
I know that, you can see that i wrote he gotta use ZCharacter class.
Oh, my bad, didn't notice you did.
Re: Hp/Ap in ScoreTable !
Thanks for help !! Fixed up !