AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   how to use next_hudchannel (https://forums.alliedmods.net/showthread.php?t=40510)

ch3cker 06-28-2006 14:47

how to use next_hudchannel
 
hi guys
can someone give me an example for the new feature "next_hudchannel" ???

Xanimos 06-28-2006 14:48

Re: how to use next_hudchannel
 
[wrong thought] sorry

ch3cker 06-28-2006 15:13

Re: how to use next_hudchannel
 
what do you mean ?

ch3cker 06-28-2006 16:08

Re: how to use next_hudchannel
 
so nobody can help me ??

jtp10181 06-28-2006 21:30

Re: how to use next_hudchannel
 
what are you trying to do exactly? next_hudchannel is not an incredibly usefull function so you might be wanting to do something else.

To answer your question this is what it does, as told by the include.

Code:
/**  * Returns the next valid hudchannel for a user, from 1-4.  */ native next_hudchannel(player);

Code:
new nexthud = next_hudchannel(player)

BAILOPAN 06-28-2006 21:33

Re: how to use next_hudchannel
 
indeed, this native has been replaced by CreateSyncHudObj() and such.

the purpose of next_hudchannel() was so you could send a message to a player and clear it on the same channel later. ClearSyncHud() replaces that.

ch3cker 06-29-2006 07:40

Re: how to use next_hudchannel
 
hmm.. i thought there is a function to search it automatical the next free hudchannel or its enough to use -1 as hudchannel ??

v3x 06-29-2006 07:57

Re: how to use next_hudchannel
 
Quote:

Originally Posted by ch3cker
hmm.. i thought there is a function to search it automatical the next free hudchannel or its enough to use -1 as hudchannel ??

Yeah, use -1 for the channel (AMXX 1.61+).

jtp10181 06-29-2006 18:53

Re: how to use next_hudchannel
 
If you will be writing another hud message in the same location before the other one is gone they will overlay each other if you ONLY use -1 for the channel. In this instance you should use a hud sync object.


All times are GMT -4. The time now is 08:06.

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