AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Two problems in say hook (https://forums.alliedmods.net/showthread.php?t=277389)

xEhsaan 01-08-2016 08:41

Two problems in say hook
 
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 :)

fysiks 01-08-2016 21:10

Re: Two problems in say hook
 
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().

xEhsaan 01-10-2016 03:48

Re: Two problems in say hook
 
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.

fysiks 01-10-2016 13:58

Re: Two problems in say hook
 
Quote:

Originally Posted by fysiks (Post 2381431)
Did you debug it to see where that character is removed?

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



All times are GMT -4. The time now is 09:30.

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