Raised This Month: $ Target: $400
 0% 

Numbers in HUD being switched around!?


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Bone
Member
Join Date: Mar 2005
Location: Under your bed
Old 04-04-2005 , 15:29   Numbers in HUD being switched around!?
Reply With Quote #1

I am adding Stamina And hunger into Avalances Rp plugin, I got health added in fine as well as stamina.. kind of, you see the thing is the hud i have that displays in upper left corner when i add stamina numbers switch around.

when i have this code

Code:
                // display money and stuff
		format(displaystring,127,"^nHunger:%d^nWallet: $%d^nBank Balance: $%d^nPaycheck in %d minutes^n%s @ $%d/hr",hunger[id],userwallet[id],userbank[id],nextpaycheck[id],displayjob,employed[id] ? employedwages[id] : get_cvar_num("avarp_unemployed_wages"));
everything works perfect but you see i dont have it display stamina, so when i add stamina to the code like so

Code:
                // display money and stuff
		format(displaystring,127,"Stamina: ^nHunger:%d^nWallet: $%d^nBank Balance: $%d^nPaycheck in %d minutes^n%s @ $%d/hr",stamina[id],hunger[id],userwallet[id],userbank[id],nextpaycheck[id],displayjob,employed[id] ? employedwages[id] : get_cvar_num("avarp_unemployed_wages"));
then it goes crazy and looks like this



so you see stamina stats is going into where hunger SHOULD be and hunger is in wallet and wallet is in bank etc.. so its all getting like shifted down. can someone PLEASE help me with this its only thing stopping me ffrom finishing plug in. thanks
__________________
the shirt covered her face, she screamed and clawed, so billy stomped on the bitch until he broke in her jaw.
Bone is offline
Send a message via MSN to Bone
johnjg75
Veteran Member
Join Date: Mar 2004
Location: Delaware
Old 04-04-2005 , 19:18  
Reply With Quote #2

Code:
format(displaystring,127,"Stamina:%d^nHunger:%d^nWallet: $%d^nBank Balance: $%d^nPaycheck in %d minutes^n%s @ $%d/hr",stamina[id],hunger[id],userwallet[id],userbank[id],nextpaycheck[id],displayjob,employed[id] ? employedwages[id] : get_cvar_num("avarp_unemployed_wages"));
__________________
johnjg75 is offline
Send a message via AIM to johnjg75 Send a message via MSN to johnjg75 Send a message via Yahoo to johnjg75
XxAvalanchexX
Veteran Member
Join Date: Oct 2004
Location: abort73.com
Old 04-06-2005 , 14:32  
Reply With Quote #3

It's because you didn't put a %d where you wanted the stamina to be dispalyed, the code john posted has it.
__________________
No longer around. Thanks your support, everyone! As always:
THIS ONES FOR YOU
3000 PTS
XxAvalanchexX is offline
DiscoBBQ
Veteran Member
Join Date: Jan 2005
Location: Clemson, South Carolina
Old 04-07-2005 , 19:40  
Reply With Quote #4

2 weeks earlier...

Code:
    format(displaystring,255,"Name: %s^nMoney: $%d^nJob: '%s' at $%d an hour^nPaycheck in: %d minutes^nOrganization: %s^nHunger: %d%^nStamina: %d%",playername,wallet[id],job[id],wages[id],nextpaycheck[id],org[id],hunger[id],stamina[id]);     set_hudmessage(1,255,1,0.015,0.015,0,6.0,999999.0,0.1,0.2,83);     show_hudmessage(id, displaystring);

i just saw you ripping my EXACT idea and CODE on stamina. And now your trying to do my hunger EXACTLY like i did?
__________________
"Every man is guilty of all the good he did not do"
DiscoBBQ is offline
cssryan
Junior Member
Join Date: Feb 2005
Old 04-07-2005 , 19:48  
Reply With Quote #5

OMG bone u nub copier
make ur own mod dont copy others nubby nubby n00b
cssryan is offline
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 09:54.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode