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

say "/" not showing


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Nutu_
AlliedModders Donor
Join Date: Mar 2016
Location: Germany
Old 11-14-2018 , 09:31   say "/" not showing
Reply With Quote #1

im sure these are from the plugin, but whenever i write something that begins with / it doesnt show up the message, for example, i got admin menu opening by /am , and if i write /am it doesnt show in chat that i've wrote /am but it works, it opens the admin menu, also i had another commands e.g /revive, /swap and those are showing up, even if i use "/" before so that must be from the adminmenu plugin, how could i solve that?
__________________
a simple act of caring creates an endless ripple.
Nutu_ is offline
SHIELD755
Veteran Member
Join Date: Feb 2018
Location: FROM MARVEL STUDIO
Old 11-14-2018 , 09:40   Re: say "/" not showing
Reply With Quote #2

means you wanna hide this symbol command "/" not blocked this symbol command ?

i am also searching for that too
__________________
SED LYF !!!
SHIELD755 is offline
Nutu_
AlliedModders Donor
Join Date: Mar 2016
Location: Germany
Old 11-14-2018 , 09:44   Re: say "/" not showing
Reply With Quote #3

i dont want to hide it, in contrary, i want my messages to show up if i use it, some messages appear if i use "/" but some don't, that's why im a bit confused, why some messages show up while using / and some do not.. is there something to do or? i dont use any kind of prefix plugin or anything else
__________________
a simple act of caring creates an endless ripple.
Nutu_ is offline
JocAnis
Veteran Member
Join Date: Jun 2010
Old 11-14-2018 , 10:00   Re: say "/" not showing
Reply With Quote #4

That /am plugin in the function where its called has return plugin_handled, when you see anything in chat its by the return plugin_continue in the end of the called func
__________________
KZ Public Autocup - PrimeKZ

My blog: http://primekz.xyz (in progress...) - not active (dec 2022)
JocAnis is offline
Nutu_
AlliedModders Donor
Join Date: Mar 2016
Location: Germany
Old 11-14-2018 , 10:12   Re: say "/" not showing
Reply With Quote #5

that was the problem, thank you so much
__________________
a simple act of caring creates an endless ripple.
Nutu_ is offline
redivcram
Veteran Member
Join Date: Jul 2014
Location: Serbia
Old 11-14-2018 , 14:35   Re: say "/" not showing
Reply With Quote #6

When you return PLUGIN_HANDLED when hooking chat, it stops there. When you return PLUGIN_CONTINUE, it does what you made it do then gets back to the engine's chat.
redivcram is offline
CheetosFXP
Junior Member
Join Date: Oct 2018
Old 11-17-2018 , 06:26   Re: say "/" not showing
Reply With Quote #7

return 1;
CheetosFXP is offline
Relaxing
AlliedModders Donor
Join Date: Jun 2016
Location: White Plains
Old 11-17-2018 , 07:09   Re: say "/" not showing
Reply With Quote #8

Quote:
Originally Posted by CheetosFXP View Post
return 1;
No, 0
__________________
Relaxing is offline
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 11-17-2018 , 14:24   Re: say "/" not showing
Reply With Quote #9

Quote:
Originally Posted by CheetosFXP View Post
return 1;
Quote:
Originally Posted by Relaxing View Post
No, 0
You should use the pre-defined values of PLUGIN_CONTINUE, PLUGIN_HANDLED, and PLUGIN_HANDLED_MAIN when returning from a function registered command.
__________________

Last edited by fysiks; 11-17-2018 at 14:25.
fysiks is offline
redivcram
Veteran Member
Join Date: Jul 2014
Location: Serbia
Old 11-17-2018 , 16:04   Re: say "/" not showing
Reply With Quote #10

Quote:
Originally Posted by CheetosFXP View Post
return 1;
Pre-defined values are there to stop this confusion. When compiling it replaces the values with the ones defined, so nothing performance-related is happening.
redivcram 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 13:18.


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