Raised This Month: $ Target: $400
 0% 

Chat On Off


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
notahacker
Member
Join Date: Jan 2015
Old 04-13-2016 , 11:29   Re: Chat On Off
Reply With Quote #3

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 View Post
PHP Code:
new cv_chat

public plugin_init() 
{
    
cv_chat register_cvar("amx_chat_enable""1")
    
register_plugin(PLUGINVERSIONAUTHOR)     
    
register_clcmd"say""Cmd_Say" 
}  

public 
Cmd_Say()
{
    if(
get_pcvar_num(cv_chat) = 0)
        return 
PLUGIN_HANDLED_MAIN

Untested. But it should work.
notahacker is offline
 



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 18:42.


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