How to make this Hud work =O
PHP Code:
|
Re: How to make this Hud work =O
First of all, indent your code ! You didn't even see that you've got an extra "}" over there.
Also, forwards (like client_connect() ) must have public in front of them. Next, players are from 1 to 32, a 32 cell array holds from 0 to 31, you need to set it to 33. Use client_putinserver() since client_connect() triggers when player connects BUT if player cancells in loading, client_disconnect() doesn't trigger, so you'll have a slot set to true even if the player isn't in the game. Use a loop to cycle through all players in hudmessage(), remove that id since it's always "69" (the task id). Example loop: Code:
new g_iMaxPlayersAnd I don't think you can set an array to a value like that, either use = {true, ...} or just use them the other way around, false means show hud message, and true means hide hud message, it could be easier for you. Your version is weird =) use a lower number such as 0.1, 1.0, 2.0, or just leave it empty. EDIT: and yeah, show_hudmessage() is a hud MESSAGE, not a menu. |
Re: How to make this Hud work =O
i can't find a menu in your code
this is the reason why you don't see the menu if menu do not exsits you can't see it :wink: here is a link [TUT] for menu's New AMXX Menu System |
Re: How to make this Hud work =O
lol i didnt but a menu yet, til then i know how too, problem is functions and damit i forgot publics -.-
|
Re: How to make this Hud work =O
|
Re: How to make this Hud work =O
:wink:
|
| All times are GMT -4. The time now is 04:17. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.