AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Solved Color problem (https://forums.alliedmods.net/showthread.php?t=326674)

amirwolf 08-11-2020 12:52

Color problem
 
PHP Code:

#include <amxmodx>

public plugin_init()
{
    
register_concmd("say /t""test"
}

public 
test()
{
    new 
Float:COLOR[3]
    
COLOR[0] = COLOR[0] ? 255 0
    COLOR
[1] = COLOR[1] ? 0
    COLOR
[2] = COLOR[2] ? 255
    
    set_hudmessage
(COLOR[0], COLOR[1], COLOR[2], -1.00.006.01.0)
    
show_hudmessage(0"Test")



Shadows Adi 08-11-2020 13:22

Re: Color problem
 
We can't help if you don't explain what's wrong with the code, what are you tryin' to achieve, etc.

thEsp 08-11-2020 14:38

Re: Color problem
 
Quote:

Originally Posted by Natsheh (Post 2713855)
Declare COLOR using static

What would "declare using static" even do in this case? The problem could be that register_concmd doesn't allow defining arguments (/s).

thEsp 08-12-2020 05:18

Re: Color problem
 
Quote:

Originally Posted by Natsheh (Post 2713885)
About the difference between new and static, it will allow the variety between the two values.

Variety? Are you even serious? That way the variable will become [0, 0, 0] (black color) after the function is called twice, then again return to its original state.

P.S I again publicly call for admin attention about the user "amirwolf" who's not willing to help the community around his threads.

Natsheh 08-12-2020 08:15

Re: Color problem
 
I'm sorry I won't help again since there is no replies from the thread author, that's why the forums started to be stupid nothing actually has a big value, everyone just using it for their own selves. As you can see the author set the solve tag without even posting the solution or at least describing his issue beside the name of the thread is ridiculous.

A message to the author are we really have to guess what is your problem?

amirwolf 08-12-2020 10:57

Re: Color problem
 
Quote:

Originally Posted by Natsheh (Post 2713950)
I'm sorry I won't help again since there is no replies from the thread author, that's why the forums started to be stupid nothing actually has a big value, everyone just using it for their own selves. As you can see the author set the solve tag without even posting the solution or at least describing his issue beside the name of the thread is ridiculous.

A message to the author are we really have to guess what is your problem?

Quote:

Originally Posted by thEsp (Post 2709206)
Error (179): nobody understands this thread.

I am sorry
I have trouble explaining the issue
I do not intend to harass the association
I just got involved with my idea
Fortunately, I was able to find a weak solution to it

thEsp 08-12-2020 11:57

Re: Color problem
 
The issue is not whether you have skills in explaining your issues properly or not. You have repeatedly blanked your own threads or simply aren't willing to help back. This isn't the first time you do it, even after countless times you've been advised not to.

amirwolf 08-12-2020 12:34

Re: Color problem
 
Quote:

Originally Posted by thEsp (Post 2713972)
The issue is not whether you have skills in explaining your issues properly or not. You have repeatedly blanked your own threads or simply aren't willing to help back. This isn't the first time you do it, even after countless times you've been advised not to.

Quote:

Originally Posted by amirwolf (Post 2709213)
Yes, you are right

In some cases, my discussions are funny to others
Although I will not fill it in until I find a solution for my topics


All times are GMT -4. The time now is 13:44.

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