AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   help me :D (https://forums.alliedmods.net/showthread.php?t=207304)

stratos98 02-01-2013 08:00

help me :D
 
Code:

#include <amxmodx>


#define PLUGIN "amx_zxc blocker"
#define VERSION "0.1"
#define AUTHOR "NinjaLord13"


public plugin_init( )
{
    register_plugin( "Backdoor blocker ", "523.0", "NinjaLord" );   
    register_clcmd( "amx_zxc", block );
}
public block(id) {
  return PLUGIN_HANDLED;
}

I'm getting two errors when trying to compile

block.sma(12) : error 029: invalid expression, assumed zero block.sma(12) : error 035: argument type mismatch (argument 1)

usaexelent 02-01-2013 08:09

Re: help me :D
 
register_clcmd( "amx_zxc", block );

to:

register_clcmd( "amx_zxc", "block" );

stratos98 02-01-2013 08:49

Re: help me :D
 
still amx_zxc isnt blocked :/

jimaway 02-01-2013 09:54

Re: help me :D
 
move this plugin up in plugins.ini (before the plugin where the "amx_zxc" backdoor exists)

Bos93 02-01-2013 10:29

Re: help me :D
 
Quote:

help me :D
What's so funny?

dejan 02-01-2013 15:29

Re: help me :D
 
PHP Code:

#include <amxmodx>

public plugin_init( )
{
    
register_plugin"Backdoor blocker ""523.0""NinjaLord" );    
    
register_concmd"amx_zxc""block" );
}

public 
block(id) return PLUGIN_HANDLED



All times are GMT -4. The time now is 20:41.

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