|
Author
|
Message
|
|
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
|

12-06-2011
, 21:31
Re: [REQ] %s - Hud Message PLZZZ
|
#1
|
Quote:
Originally Posted by TheArmagedon
This should work...
PHP Code:
new iRank[33];
enum {
MEMBER,
OTHER
}
function(id)
{
iRank[id] = MEMBER;
switch(iRank[id])
{
case MEMBER:
{
set_hudmessage(0, 0, 255, -1.0, -1.0, 2, 1.0, 9.0, 0.01, 0.1, 10)
show_hudmessage(0, "Rank: Member")
}
default:
{
}
// bla bla bla ..
}
// if you dont want multiple things only use:
if(iRank[id] == MEMBER)
{
set_hudmessage(0, 0, 255, -1.0, -1.0, 2, 1.0, 9.0, 0.01, 0.1, 10)
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.
__________________
|
|
|
|