Raised This Month: $ Target: $400
 0% 

Client_SayTeam admin chat


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
speedyy
New Member
Join Date: Jun 2015
Old 11-01-2019 , 05:43   Client_SayTeam admin chat
Reply With Quote #1

hi, i'm new here,i try to do something different for admin and player chat,
everything is perfect but does not show the messages if you write something
if you are a player and you write something you cannot see the message
Attached Files
File Type: txt Client_SayTeam.txt (1.1 KB, 31 views)
speedyy is offline
OciXCrom
Veteran Member
Join Date: Oct 2013
Location: Macedonia
Old 11-01-2019 , 08:06   Re: Client_SayTeam admin chat
Reply With Quote #2

It's hard to tell where the error is when the entire function is full of custom variables and functions. The easiest way to find out where your mistake is is by putting log messages after each check, so you can see where the problem appears.

Some of the things in there don't make any sense to me. Why are you using magic numbers instead of constants? Why this?

PHP Code:
if (cMessage[0] == 64
Is this a decompiled plugin?

This may help you - https://forums.alliedmods.net/showthread.php?t=272418
__________________
OciXCrom is offline
Send a message via Skype™ to OciXCrom
speedyy
New Member
Join Date: Jun 2015
Old 11-01-2019 , 09:21   Re: Client_SayTeam admin chat
Reply With Quote #3

Quote:
Originally Posted by OciXCrom View Post
It's hard to tell where the error is when the entire function is full of custom variables and functions. The easiest way to find out where your mistake is is by putting log messages after each check, so you can see where the problem appears.

Some of the things in there don't make any sense to me. Why are you using magic numbers instead of constants? Why this?

PHP Code:
if (cMessage[0] == 64
Is this a decompiled plugin?

This may help you - https://forums.alliedmods.net/showthread.php?t=272418
the code made by fantasy from zm out anti-advertisement
I don't think it's something decompiled
speedyy is offline
Reply



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 17:59.


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