Raised This Month: $32 Target: $400
 8% 

Solved Color problem


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
amirwolf
Senior Member
Join Date: Feb 2019
Location: Iran
Old 08-11-2020 , 12:52   Color problem
Reply With Quote #1

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")


Last edited by amirwolf; 08-12-2020 at 04:15.
amirwolf is offline
Shadows Adi
AlliedModders Donor
Join Date: Aug 2019
Location: Romania
Old 08-11-2020 , 13:22   Re: Color problem
Reply With Quote #2

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


Accepting Paid Requests, contact PM.

MVP Of The Round View project on GITHUB / AlliedModders
CSGO REMAKE ~ CSGO MOD [STABLE + SOURCE CODE]
Shadows Adi is offline
Old 08-11-2020, 13:25
Natsheh
This message has been deleted by Natsheh. Reason: The author of the post is a retard.
thEsp
BANNED
Join Date: Aug 2017
Old 08-11-2020 , 14:38   Re: Color problem
Reply With Quote #3

Quote:
Originally Posted by Natsheh View Post
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 is offline
Old 08-11-2020, 18:37
Natsheh
This message has been deleted by Natsheh. Reason: The author of the post is a retard.
thEsp
BANNED
Join Date: Aug 2017
Old 08-12-2020 , 05:18   Re: Color problem
Reply With Quote #4

Quote:
Originally Posted by Natsheh View Post
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.

Last edited by thEsp; 08-12-2020 at 05:29.
thEsp is offline
Natsheh
Veteran Member
Join Date: Sep 2012
Old 08-12-2020 , 08:15   Re: Color problem
Reply With Quote #5

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?
__________________
@Jailbreak Main Mod v2.7.0 100%
@User Tag Prefix 100% done !
@Mystery Box 100% done !
@VIP System 100% done !

Natsheh is offline
Send a message via MSN to Natsheh Send a message via Skype™ to Natsheh
amirwolf
Senior Member
Join Date: Feb 2019
Location: Iran
Old 08-12-2020 , 10:57   Re: Color problem
Reply With Quote #6

Quote:
Originally Posted by Natsheh View Post
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 View Post
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
amirwolf is offline
thEsp
BANNED
Join Date: Aug 2017
Old 08-12-2020 , 11:57   Re: Color problem
Reply With Quote #7

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.
thEsp is offline
amirwolf
Senior Member
Join Date: Feb 2019
Location: Iran
Old 08-12-2020 , 12:34   Re: Color problem
Reply With Quote #8

Quote:
Originally Posted by thEsp View Post
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 View Post
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

Last edited by amirwolf; 08-12-2020 at 12:41.
amirwolf is offline
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 14:10.


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