Thank you very much.. But these errors
Warning: Possibly unintended assignment on line 19
Error: Must be lvalue (non-constant) on line 19
Warning: Expression has no effect on line 19
Error: Expected token: ";", but found ")" on line 19
Error: Invalid expression, assumed zero on line 19
Error: Too many error messages on one line on line 19
line 19 is
Code:
if(get_pcvar_num(cv_chat) = 0)
Quote:
Originally Posted by Shattered Heart Lynx
PHP Code:
new cv_chat
public plugin_init()
{
cv_chat = register_cvar("amx_chat_enable", "1")
register_plugin(PLUGIN, VERSION, AUTHOR)
register_clcmd( "say", "Cmd_Say" )
}
public Cmd_Say()
{
if(get_pcvar_num(cv_chat) = 0)
return PLUGIN_HANDLED_MAIN
}
Untested. But it should work.
|