AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   say "/" not showing (https://forums.alliedmods.net/showthread.php?t=312052)

Nutu_ 11-14-2018 09:31

say "/" not showing
 
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?

SHIELD755 11-14-2018 09:40

Re: say "/" not showing
 
means you wanna hide this symbol command "/" not blocked this symbol command ?

i am also searching for that too

Nutu_ 11-14-2018 09:44

Re: say "/" not showing
 
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

JocAnis 11-14-2018 10:00

Re: say "/" not showing
 
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

Nutu_ 11-14-2018 10:12

Re: say "/" not showing
 
that was the problem, thank you so much

redivcram 11-14-2018 14:35

Re: say "/" not showing
 
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.

CheetosFXP 11-17-2018 06:26

Re: say "/" not showing
 
return 1;

Relaxing 11-17-2018 07:09

Re: say "/" not showing
 
Quote:

Originally Posted by CheetosFXP (Post 2624421)
return 1;

No, 0

fysiks 11-17-2018 14:24

Re: say "/" not showing
 
Quote:

Originally Posted by CheetosFXP (Post 2624421)
return 1;

Quote:

Originally Posted by Relaxing (Post 2624430)
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.

redivcram 11-17-2018 16:04

Re: say "/" not showing
 
Quote:

Originally Posted by CheetosFXP (Post 2624421)
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.


All times are GMT -4. The time now is 07:38.

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