Raised This Month: $ Target: $400
 0% 

HUD


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
shine771
Senior Member
Join Date: Jun 2007
Old 06-25-2007 , 12:22   HUD
Reply With Quote #1

Why it shows only 1 line with |||||

CODE:
PHP Code:
public ShowPsyhoLevel(id)
{
 new 
one=get_pcvar_num(psyho_madness) / 6
 
new two=one 2
 
new three=one 3
 
new four=one 4
 
new five=one 5
 
 
 
if(psyho_level[id]== 0)
 {
  
set_hudmessage(012500.00.7006.012.0)
  
show_hudmessage(id"|||||")
  
set_hudmessage(012500.00.6006.012.0)
  
show_hudmessage(id"|||||")
  
set_hudmessage(12512500.00.5006.012.0)
  
show_hudmessage(id"|||||")
  
set_hudmessage(12512500.00.4006.012.0)
  
show_hudmessage(id"|||||")
  
set_hudmessage(125000.00.5006.012.0)
  
show_hudmessage(id"|||||")
  
set_hudmessage(125000.00.4006.012.0)
  
show_hudmessage(id"|||||")
 }
 
 if(
psyho_level[id]> && psyho_level[id] < one)
 {
  
set_hudmessage(022500.00.7006.012.0)
  
show_hudmessage(id"|||||")
  
set_hudmessage(012500.00.6006.012.0)
  
show_hudmessage(id"|||||")
  
set_hudmessage(12512500.00.5006.012.0)
  
show_hudmessage(id"|||||")
  
set_hudmessage(12512500.00.4006.012.0)
  
show_hudmessage(id"|||||")
  
set_hudmessage(125000.00.5006.012.0)
  
show_hudmessage(id"|||||")
  
set_hudmessage(125000.00.4006.012.0)
  
show_hudmessage(id"|||||")
 }
 
 if(
psyho_level[id]> one && psyho_level[id] < two)
 {
  
set_hudmessage(022500.00.7006.012.0)
  
show_hudmessage(id"|||||")
  
set_hudmessage(022500.00.6006.012.0)
  
show_hudmessage(id"|||||")
  
set_hudmessage(12512500.00.5006.012.0)
  
show_hudmessage(id"|||||")
  
set_hudmessage(12512500.00.4006.012.0)
  
show_hudmessage(id"|||||")
  
set_hudmessage(125000.00.5006.012.0)
  
show_hudmessage(id"|||||")
  
set_hudmessage(125000.00.4006.012.0)
  
show_hudmessage(id"|||||")
 }
 
 if(
psyho_level[id]> two && psyho_level[id] < three)
 {
  
set_hudmessage(022500.00.7006.012.0)
  
show_hudmessage(id"|||||")
  
set_hudmessage(022500.00.6006.012.0)
  
show_hudmessage(id"|||||")
  
set_hudmessage(22522500.00.5006.012.0)
  
show_hudmessage(id"|||||")
  
set_hudmessage(12512500.00.4006.012.0)
  
show_hudmessage(id"|||||")
  
set_hudmessage(125000.00.5006.012.0)
  
show_hudmessage(id"|||||")
  
set_hudmessage(125000.00.4006.012.0)
  
show_hudmessage(id"|||||")
 }
 
 if(
psyho_level[id]> three && psyho_level[id] < four)
 {
  
set_hudmessage(022500.00.7006.012.0)
  
show_hudmessage(id"|||||")
  
set_hudmessage(022500.00.6006.012.0)
  
show_hudmessage(id"|||||")
  
set_hudmessage(22522500.00.5006.012.0)
  
show_hudmessage(id"|||||")
  
set_hudmessage(22522500.00.4006.012.0)
  
show_hudmessage(id"|||||")
  
set_hudmessage(125000.00.5006.012.0)
  
show_hudmessage(id"|||||")
  
set_hudmessage(125000.00.4006.012.0)
  
show_hudmessage(id"|||||")
 }
 
 if(
psyho_level[id]> four && psyho_level[id] < five)
 {
  
set_hudmessage(022500.00.7006.012.0)
  
show_hudmessage(id"|||||")
  
set_hudmessage(022500.00.6006.012.0)
  
show_hudmessage(id"|||||")
  
set_hudmessage(22522500.00.5006.012.0)
  
show_hudmessage(id"|||||")
  
set_hudmessage(22522500.00.4006.012.0)
  
show_hudmessage(id"|||||")
  
set_hudmessage(225000.00.5006.012.0)
  
show_hudmessage(id"|||||")
  
set_hudmessage(125000.00.4006.012.0)
  
show_hudmessage(id"|||||")
 }
 
 if(
psyho_level[id]> five&& psyho_level[id] < get_pcvar_num(psyho_madness))
 {
  
set_hudmessage(022500.00.7006.012.0)
  
show_hudmessage(id"|||||")
  
set_hudmessage(022500.00.6006.012.0)
  
show_hudmessage(id"|||||")
  
set_hudmessage(22522500.00.5006.012.0)
  
show_hudmessage(id"|||||")
  
set_hudmessage(22522500.00.4006.012.0)
  
show_hudmessage(id"|||||")
  
set_hudmessage(225000.00.5006.012.0)
  
show_hudmessage(id"|||||")
  
set_hudmessage(225000.00.4006.012.0)
  
show_hudmessage(id"|||||")
 }
 
 if(
psyho_level[id] == get_pcvar_num(psyho_madness))
 {
  
set_hudmessage(25525500.00.7006.012.0)
  
show_hudmessage(id"|||||")
  
set_hudmessage(25525500.00.6006.012.0)
  
show_hudmessage(id"|||||")
  
set_hudmessage(25525500.00.5006.012.0)
  
show_hudmessage(id"|||||")
  
set_hudmessage(25525500.00.4006.012.0)
  
show_hudmessage(id"|||||")
  
set_hudmessage(25525500.00.5006.012.0)
  
show_hudmessage(id"|||||")
  
set_hudmessage(25525500.00.4006.012.0)
  
show_hudmessage(id"|||||")
 }
 
 
set_task(1.0,"ShowPsyhoLevel"id)

I tryed changing channels, but then it shows only 2 lines...
Can you show me a better method?
shine771 is offline
mateo10
Veteran Member
Join Date: Jan 2006
Old 06-25-2007 , 13:48   Re: HUD
Reply With Quote #2

Because all those messages are in the same channel. Search in the funcwiki for set_hudmessage and you'll see how to specify a channel.
mateo10 is offline
Drak
Veteran Member
Join Date: Jul 2005
Old 06-25-2007 , 13:50   Re: HUD
Reply With Quote #3

You can try changing the channel to "-1". So that HL will automatically find an empty channel.
__________________
Oh yeah
Drak is offline
Send a message via MSN to Drak
Old 06-25-2007, 15:16
organizedKaoS
This message has been deleted by organizedKaoS.
Lee
AlliedModders Donor
Join Date: Feb 2006
Old 06-25-2007 , 17:47   Re: HUD
Reply With Quote #4

Why on earth would 'one' always hold 1?
Lee is offline
shine771
Senior Member
Join Date: Jun 2007
Old 06-26-2007 , 06:37   Re: HUD
Reply With Quote #5

@organizedKaoS

No. I know the NEW LINE thing.
Look;

Line 1 - Green
Line 2 - Yellow
Line 3 - Red

I got a problem with floats, before you posted. Thats why i didn't use them.

@Lee
No.i just called it "ONE"

I will try SixTwin's sugestion
shine771 is offline
Lee
AlliedModders Donor
Join Date: Feb 2006
Old 06-26-2007 , 07:27   Re: HUD
Reply With Quote #6

You misunderstood. I was talking about how organizedKaoS read 'one' as 1.
Lee is offline
Old 06-26-2007, 13:27
organizedKaoS
This message has been deleted by organizedKaoS.
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 18:08.


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