Raised This Month: $ Target: $400
 0% 

Password clcmd


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
B1GB0Y
Member
Join Date: Apr 2010
Location: Portugal
Old 06-07-2010 , 18:15   Re: Password clcmd
Reply With Quote #5

Thanks for the help HLM, in compile im taking a few errors and i have fixed the most simple ones but the code still having 2 errors that i don't know how to fix. Here is ..

PHP Code:
/* Plugin generated by AMXX-Studio */

#include <amxmodx>
#include <amxmisc>

#define PLUGIN "Easy Password Changer"
#define VERSION "1.0"
#define AUTHOR "Master"


public plugin_init() {
    
register_plugin(PLUGINVERSIONAUTHOR)
    
register_clcmd("say""Hook_Say", -1"This is how you say things!")
}

public 
Hook_Say(idlevelcid)
{
    if (!
cmd_access(id,level,cid,2))
        return 
PLUGIN_CONTINUE;
    new 
said[128];
    
read_args(saidsizeof(said)-1)
    
remove_quote(said)
    if(
equali(said".nopass"))
        
set_cvar_string("sv_password""")
    else if(
equali(said".pass",5))
    {
        
replace(saidsizeof(said)-1".pass """)
        
set_cvar_string("sv_password"said);
    }
return 
PLUGIN_CONTINUE;

Added 1 parenthesis in first if and other 1 in else if.
Added
return PLUGIN_CONTINUE; in the final of the code

I fixed this things but i still having in the line 13 :


warning 217: loose indentation

And in the line 24:

error 017: undefined symbol "remove_quote"


B1GB0Y 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 05:23.


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