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-07-2011 , 20:28   Re: [REQ] %s - Hud Message PLZZZ
Reply With Quote #1

Quote:
Originally Posted by NiceGuyx View Post
The part you are asking about seems fine to me. What does the HUD message actually show?
__________________
fysiks is offline
.Dare Devil.
Veteran Member
Join Date: Sep 2010
Old 12-08-2011 , 01:40   Re: [REQ] %s - Hud Message PLZZZ
Reply With Quote #2

PHP Code:
new g_rank[33]
 
public 
rank(id)
 
g_rank[id] = "Member"
 
// Problems then try use this  
// formatex(g_rank[id], charsmax(g_rank[id]), "member")
 
 
static rankname[32][/COLOR]
formatex(class, charsmax(class), "%s"g_rank[id]")
 
set_hudmessage(0, 0, 255, -1.0, -1.0, 2, 1.0, 9.0, 0.01, 0.1, 10)
show_hudmessage(0, "
Rank: %s", rankname[id]) 
PS: You dont need 2d array or what ever it call.
If you now still have problem then use ohter way.

PHP Code:
 
new g_rank[33]
 
 
public 
rank(id)
{
       
g_rank[id] = 1
}
 
static 
rankname[32]
 
if ( 
g_rank[id] == )
formatex(class, charsmax(class), "member")
else if ( 
g_rank[id] == )
formatex(class, charsmax(class), "new rank class")
...
 
set_hudmessage(00255, -1.0, -1.021.09.00.010.110)
show_hudmessage(0"Rank: %s"rankname[id]) 
Something like this.

In that where are that if ( g_rank[id] == 1 )
There make all your rank named
and then use g_rank[id] only numbers.


I also have sometimes that problem, i think the word can not be in
new g_rank[33] .

Last edited by .Dare Devil.; 12-08-2011 at 01:46.
.Dare Devil. is offline
Brian-__-
Member
Join Date: Jan 2010
Old 12-21-2011 , 04:35   Re: [REQ] %s - Hud Message PLZZZ
Reply With Quote #3

I think he is a noob and his g_rank[id] is a integer number

You should change Rank: %s to Rank: %d
Brian-__- 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