Raised This Month: $ Target: $400
 0% 

Arument type mismatch


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
kramesa
Veteran Member
Join Date: Feb 2011
Location: Brazil
Old 12-13-2011 , 17:38   Arument type mismatch
Reply With Quote #1

PHP Code:
#include <amxmodx>
#include <amxmisc>

#define PLUGIN    "Dont Say Command = Kick"
#define AUTHOR    "kramesa"
#define VERSION    "1.0"

#define TIME 30

new Command

public plugin_init()
{
    
register_plugin(PLUGINVERSIONAUTHOR)
    
register_clcmd("say""Say_Args")
    
Command register_cvar("amx_cmdkick""/example")
}

public 
client_putinserver(id)
{
    
Start_Time(id)
}

public 
Say_Args(id)
{
    if(
equali(get_cvar_num("amx_cmdkick"))
    {
        
remove_task(id
    }
}

public 
Start_Time(id)
{
    
set_task(float(TIME), "KickUser"id)
}

public 
KickUser(id)
{
    
server_cmd("kick #%d ^"%s^""get_user_userid(id), "Your dont say %s in %s seconds."CommandTIME

Becase I have the error 'Argument type mismatch' on line 26?

PHP Code:
public Say_Args(id)
{
    if(
equali(get_cvar_num("amx_cmdkick"))
    {
        
remove_task(id
    }

__________________

Last edited by kramesa; 12-13-2011 at 17:43.
kramesa 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 11:46.


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