Raised This Month: $ Target: $400
 0% 

[REQ] %s - Hud Message PLZZZ


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 12-06-2011 , 21:31   Re: [REQ] %s - Hud Message PLZZZ
Reply With Quote #1

Quote:
Originally Posted by TheArmagedon View Post
This should work...
PHP Code:
new iRank[33];
enum {
    
MEMBER,
    
OTHER
}

function(
id)
{
    
iRank[id] = MEMBER;
        
    switch(
iRank[id])
    {
        case 
MEMBER:
        {
            
set_hudmessage(00255, -1.0, -1.021.09.00.010.110)
            
show_hudmessage(0"Rank: Member")
        }
        default:
        {
            
        }
        
// bla bla bla ..
    
}
    
// if you dont want multiple things only use:
    
    
if(iRank[id] == MEMBER
    {
        
set_hudmessage(00255, -1.0, -1.021.09.00.010.110)
        
show_hudmessage(0"Rank: Member")
    }

It would be more appropriate to use a dynamic HUD message like the OP is trying to do unless there is an absolute need to do more than just print the info. If only trying to print that info then you waste a lot of time making a case for each rank.
__________________
fysiks 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 12:02.


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