AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   set_hudmessage, show_hudmessage (https://forums.alliedmods.net/showthread.php?t=50479)

tlc660 01-27-2007 08:23

set_hudmessage, show_hudmessage
 
the documents said that can have max up to 4 channel per user for hudmessage.
when use same channel, the previous hudmessage will replace/orverwrited.

but i have found that, although the message are replaced, but the "effect" are not reset, and the hudmessage seem are draw multi times when multi call to same channel

Code:

new counter = 0
public myHudMsg(id){
    set_hudmessage(100, 255, 0, 0.02, 0.25, 2, 0.0, 12.0, 0.2, 0.2, 1);
    show_hudmessage(id,"Counter : %d", counter);
    counter++;
    set_task(2.0, "myHudMsg", id);
}

which the code above, i see the the type writer effect draw again, again and again
and after few times the text no more semi-transparent

any one know what happen?

thanks


All times are GMT -4. The time now is 22:20.

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