AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Code Snippets/Tutorials (https://forums.alliedmods.net/forumdisplay.php?f=83)
-   -   [INC] Director Hud Message (https://forums.alliedmods.net/showthread.php?t=149210)

OciXCrom 05-16-2020 18:52

Re: [INC] Director Hud Message
 
The first plugin has the dhudmessage file included in the .sma itself. Remove lines 13 and 214 to 319.

The second plugin has a slightly different problem. "dhudmessage.inc" uses an additional argument in the "set_dhudmessage" function, while the one built in AMXX doesn't have this argument, so you get an error saying that the number of arguments doesn't match the definition.

To fix this, simply remove the last argument from the functions on lines 88 and 93. Both of them have the argument "false".

PS: you're using an old 1.8.3 dev-build. The current development version is AMXX 1.9. You should consider updating - https://www.amxmodx.org/downloads-new.php

XuberAxel 05-17-2020 14:21

Re: [INC] Director Hud Message
 
Quote:

Originally Posted by OciXCrom (Post 2700517)
Show the code.

I DID IT. I could fix the seccond one :D I found the solution in a russian forum. And I see that you are telling me what to do at the same time xD

Before:
Code:

set_dhudmessage(get_pcvar_num(hud_r),get_pcvar_num(hud_g),get_pcvar_num(hud_b), -1.0, 0.05, 0, 6.0, 1.0,0.0,0.1, false)
After:
Code:

set_dhudmessage(get_pcvar_num(hud_r),get_pcvar_num(hud_g),get_pcvar_num(hud_b), -1.0, 0.05, 0, 6.0, 1.0,0.0,0.1)
I had to remove the last argument. And the first one I did what you are telling me. Thanks for your help.

Last question. Installing the AMXMOD X 1.9 is the same thing that 1.8.3 or there is something different to do?

OciXCrom 05-17-2020 14:37

Re: [INC] Director Hud Message
 
It's the same. 1.9 is just a newer 1.8.3. Bear in mind that 1.10 also exists.


All times are GMT -4. The time now is 03:35.

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