Raised This Month: $ Target: $400
 0% 

[REQ] Hud messages!


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
ScrappeR
Senior Member
Join Date: Dec 2010
Old 05-10-2013 , 13:26   [REQ] Hud messages!
Reply With Quote #1

how i can make this....



examplee

PHP Code:
public go_info(id)
{
        new 
stats], body], hostname64 ], name32 ]

        new 
rank_pos get_user_statsidstatsbody )
        new 
rank_max get_statsnum( )

        
get_cvar_string"hostname"hostname63 )
        
get_user_nameidname31 )
        
        
set_hudmessage01500, ...........)
        
show_hudmessageid"..... )
    }
    else
    {
        set_hudmessage( 221, 222, 33, ......)
         show_hudmessage( id, "
..... )

i add this

PHP Code:
    }
    else
    { 
and not compiled... ???
__________________

Last edited by ScrappeR; 05-10-2013 at 13:36.
ScrappeR is offline
guipatinador
SourceMod Donner Party
Join Date: Oct 2009
Location: Poortugal
Old 05-10-2013 , 13:36   Re: [REQ] Hud messages!
Reply With Quote #2

What?

You don't have a if statement.
guipatinador is offline
ScrappeR
Senior Member
Join Date: Dec 2010
Old 05-10-2013 , 13:43   Re: [REQ] Hud messages!
Reply With Quote #3

How to do thiss ??
__________________
ScrappeR is offline
guipatinador
SourceMod Donner Party
Join Date: Oct 2009
Location: Poortugal
Old 05-10-2013 , 13:48   Re: [REQ] Hud messages!
Reply With Quote #4

You need to explain better what you want.

PHP Code:
if( statement )
{
// something
}

else
{
 
// something else

guipatinador is offline
ScrappeR
Senior Member
Join Date: Dec 2010
Old 05-10-2013 , 14:05   Re: [REQ] Hud messages!
Reply With Quote #5

Quote:
Originally Posted by guipatinador View Post
You need to explain better what you want.

PHP Code:
if( statement )
{
// something
}

else
{
 
// something else

Can you make this fixed...


PHP Code:
public go_info(id)
{
        new 
stats], body], hostname64 ], name32 ]

        new 
rank_pos get_user_statsidstatsbody )
        new 
rank_max get_statsnum( )

        
get_cvar_string"hostname"hostname63 )
        
get_user_nameidname31 )
        
        
set_hudmessage01500, ...........)
        
show_hudmessageid"..... )
    }
    else
    {
        set_hudmessage( 221, 222, 33, ......)
         show_hudmessage( id, "
..... )

i add this

PHP Code:
    }
    else
    { 
???
__________________
ScrappeR is offline
YamiKaitou
Has a lovely bunch of coconuts
Join Date: Apr 2006
Location: Texas
Old 05-10-2013 , 14:20   Re: [REQ] Hud messages!
Reply With Quote #6

You need to add an IF statement before you can add an ELSE statement
__________________
ProjectYami Laboratories

I do not browse the forums regularly anymore. If you need me for anything (asking questions or anything else), then PM me (be descriptive in your PM, message containing only a link to a thread will be ignored).

Last edited by YamiKaitou; 05-10-2013 at 14:20.
YamiKaitou is offline
ScrappeR
Senior Member
Join Date: Dec 2010
Old 05-10-2013 , 17:59   Re: [REQ] Hud messages!
Reply With Quote #7

PHP Code:
public go_info(id)
{
        new 
stats], body], hostname64 ], name32 ]

        new 
rank_pos get_user_statsidstatsbody )
        new 
rank_max get_statsnum( )

        
get_cvar_string"hostname"hostname63 )
        
get_user_nameidname31 )
        
    if( 
statement )
    {
        
set_hudmessage22122233, ....)
        
show_hudmessageid".....d")
    }
    else
    {
        
set_hudmessage22122233, ....)
        
show_hudmessageid".....d")
    }

Undefined "statement" how I can compile this ...
__________________
ScrappeR is offline
YamiKaitou
Has a lovely bunch of coconuts
Join Date: Apr 2006
Location: Texas
Old 05-10-2013 , 19:41   Re: [REQ] Hud messages!
Reply With Quote #8

You need to replace statement with the actual statement that you want to compare in order to determine which hud message to display
__________________
ProjectYami Laboratories

I do not browse the forums regularly anymore. If you need me for anything (asking questions or anything else), then PM me (be descriptive in your PM, message containing only a link to a thread will be ignored).
YamiKaitou is offline
ScrappeR
Senior Member
Join Date: Dec 2010
Old 05-10-2013 , 20:13   Re: [REQ] Hud messages!
Reply With Quote #9

Quote:
Originally Posted by YamiKaitou View Post
You need to replace statement with the actual statement that you want to compare in order to determine which hud message to display
Can you do any test here with this script? thanks..
__________________
ScrappeR is offline
YamiKaitou
Has a lovely bunch of coconuts
Join Date: Apr 2006
Location: Texas
Old 05-10-2013 , 20:15   Re: [REQ] Hud messages!
Reply With Quote #10

We can't help you as you are not helping us in understanding why you want the else statement. On what condition do you want it to show which hud message
__________________
ProjectYami Laboratories

I do not browse the forums regularly anymore. If you need me for anything (asking questions or anything else), then PM me (be descriptive in your PM, message containing only a link to a thread will be ignored).
YamiKaitou 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 10:58.


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