Raised This Month: $ Target: $400
 0% 

[Question]Hide Messages Start With Slash


Post New Thread Reply   
 
Thread Tools Display Modes
ViBE
Member
Join Date: Jul 2011
Location: Somewhere over the...
Old 04-30-2014 , 17:57   Re: [Question]Hide Messages Start With Slash
Reply With Quote #31

there is a bunch of codes here. which one works with the latest AMXX+server combo?
ViBE is offline
Send a message via ICQ to ViBE
joshknifer
Veteran Member
Join Date: Jun 2011
Location: Denver, CO
Old 04-30-2014 , 18:00   Re: [Question]Hide Messages Start With Slash
Reply With Quote #32

When in doubt, go with Connor lol

https://forums.alliedmods.net/showpo...5&postcount=22
__________________
joshknifer is offline
Send a message via Skype™ to joshknifer
ViBE
Member
Join Date: Jul 2011
Location: Somewhere over the...
Old 05-01-2014 , 13:29   Re: [Question]Hide Messages Start With Slash
Reply With Quote #33

Quote:
Originally Posted by joshknifer View Post
i tested now and its not working with AMXX 1.8.2 :/
ViBE is offline
Send a message via ICQ to ViBE
legenda_ser
Junior Member
Join Date: Apr 2011
Old 09-04-2014 , 10:27   Re: [Question]Hide Messages Start With Slash
Reply With Quote #34

it is bug in amx

i am test

Code:
new test1[4] = "^"a^"";
remove_quotes(test1);
client_print(id,print_console,"%s",test1);
new test2[4] = "^"b";
remove_quotes(test2);
client_print(id,print_console,"%s",test2);
result
Code:
a
"b
remove_quotes work with only double "
plugin don't work because szArg[0] is "/

use cmd in client console and test msg
say "/abc"
say /abc
say "/abc

Last edited by legenda_ser; 09-04-2014 at 10:34.
legenda_ser is offline
guipatinador
SourceMod Donner Party
Join Date: Oct 2009
Location: Poortugal
Old 09-05-2014 , 04:34   Re: [Question]Hide Messages Start With Slash
Reply With Quote #35

Maybe replace_all( szTest, charsmax( szTest ), "^"", "" )
__________________
PM for help = ignore

Last edited by guipatinador; 09-05-2014 at 04:35.
guipatinador is offline
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 09-05-2014 , 05:36   Re: [Question]Hide Messages Start With Slash
Reply With Quote #36

Quote:
Originally Posted by legenda_ser View Post
it is bug in amx

i am test

Code:
new test1[4] = "^"a^"";
remove_quotes(test1);
client_print(id,print_console,"%s",test1);
new test2[4] = "^"b";
remove_quotes(test2);
client_print(id,print_console,"%s",test2);
result
Code:
a
"b
remove_quotes work with only double "
This is not a bug, this is how it is supposed to work.
__________________
fysiks is offline
legenda_ser
Junior Member
Join Date: Apr 2011
Old 09-05-2014 , 07:54   Re: [Question]Hide Messages Start With Slash
Reply With Quote #37

I believe that remove_quotes remove all quotes, in amxx it is bug...
may be i mistaken

ps sorry my en
legenda_ser is offline
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 09-05-2014 , 15:42   Re: [Question]Hide Messages Start With Slash
Reply With Quote #38

Quote:
Originally Posted by legenda_ser View Post
I believe that remove_quotes remove all quotes, in amxx it is bug...
may be i mistaken

ps sorry my en
No, it is only supposed to remove the outer pair of quotes. If there is only a single quote at the beginning or the end, it does not qualify to be removed. It is supposed to remove quotes for "quoted" strings. If there is only a single quote, nothing is actually "quoted".
__________________

Last edited by fysiks; 09-05-2014 at 15:42.
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 01:21.


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