Raised This Month: $51 Target: $400
 12% 

Two problems in say hook


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
xEhsaan
Member
Join Date: Mar 2015
Location: Isfahan, Iran
Old 01-08-2016 , 08:41   Two problems in say hook
Reply With Quote #1

I have this code written by myself (I know it's not optimized, just testing it):
Spoiler


Problems are:
1. Sometimes when a normal player chats, his chat doesn't appear for himself.
2. If a key binded to a command like this:
Code:
bind kp_5 "say :|"
the character after ( : ) appears for nobody.

Thank you
__________________
* Wait for something awesome...
* AMX Mod X Plugin Translation Repository [Paused Temporarily]
* Knife Deathmatch Shop
* Knife CFG Detector
* Looking for an idea...

Last edited by xEhsaan; 01-08-2016 at 08:43.
xEhsaan is offline
Send a message via Skype™ to xEhsaan
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 01-08-2016 , 21:10   Re: Two problems in say hook
Reply With Quote #2

Did you debug it to see where that character is removed? BTW, that character is known as a vertical bar or pipe (among several other names).

I would probably first check after read_argv(), remove_quotes(), and trim().
__________________

Last edited by fysiks; 01-08-2016 at 21:12.
fysiks is offline
xEhsaan
Member
Join Date: Mar 2015
Location: Isfahan, Iran
Old 01-10-2016 , 03:48   Re: Two problems in say hook
Reply With Quote #3

Quote:
Did you debug it to see where that character is removed? BTW, that character is known as a vertical bar or pipe (among several other names).
It's not about vertical pipe only, same result for other characters.
__________________
* Wait for something awesome...
* AMX Mod X Plugin Translation Repository [Paused Temporarily]
* Knife Deathmatch Shop
* Knife CFG Detector
* Looking for an idea...
xEhsaan is offline
Send a message via Skype™ to xEhsaan
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 01-10-2016 , 13:58   Re: Two problems in say hook
Reply With Quote #4

Quote:
Originally Posted by fysiks View Post
Did you debug it to see where that character is removed?

I would probably first check after read_argv(), remove_quotes(), and trim().
__________________
fysiks 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 21:32.


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