Raised This Month: $ Target: $400
 0% 

ban command param errors


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
Hunter-Digital
Veteran Member
Join Date: Aug 2006
Location: In the Game [ro]
Old 01-29-2007 , 14:47   ban command param errors
Reply With Quote #1

Hello again
I don't know, I'ved tryed to fix it for hours... it gives me some errors... before it didn't.... before I modified this code:
Code:
 
public amx_ss(id, level, cid) {
    if (!cmd_access(id, level, cid, 2))
        console_print(id,"[ Acces Denied - Acces Level 2 ]")
        return PLUGIN_HANDLED
    new arg[32]
    read_argv(1, arg, 31)
    new player = cmd_target(id, arg, 1)
    if (!player)
        return PLUGIN_HANDLED
    new name2[32], name[32], userid2, ip
    get_user_name(player, name2, 31)
    get_user_name(id, name, 31)
    userid2 = get_user_userid(player)
    ip = get_user_ip(player)
    client_print(0, print_chat, "      %s [Screenshot] %s [%s]", name, name2, ip)
    console_print(id,"[ Acces Granted - User ^"%s^" @ ^"%s^" Screenshot ]",name2,ip)
    client_cmd(player, "snapshot", userid2)
    client_print(player, print_chat, "     [Screenshot] %s [%s]",name2,ip)
    client_cmd(0,"spk ^"vox/bizwarn coded user secured^"")
    return PLUGIN_HANDLED
}
public amx_ssban(id, level, cid) {
    if (!cmd_access(id, level, cid, 2))
        console_print(id,"[ Acces Denied - Acces Level 2 ]")
        return PLUGIN_HANDLED
    new arg[32]
    read_argv(1, arg, 31)
    new player = cmd_target(id, arg, 1)
    if (!player)
        return PLUGIN_HANDLED
    new name2[32], name[32], userid2, ip
    get_user_name(player, name2, 31)
    get_user_name(id, name, 31)
    userid2 = get_user_userid(player)
    ip = get_user_ip(player)
    client_print(0, print_chat, "     %s [ScreenshotBAN] %s [%s]", name, name2, ip)
    console_print(id,"[ Acces Granted - User ^"%s^" @ ^"%s^" ScreenshotBanned ]",name2,ip)
    client_cmd(player, "snapshot", userid2)
    client_print(player, print_chat, "     [Screenshot #1] %s [%s]", name2, ip)
    server_cmd("kick #%d ^"Blabla just text :D^";wait;addip 0 ^"%s^";wait;writeip",userid2,ip)
    client_cmd(0,"spk ^"vox/bizwarn coded user apprehend^"")
    return PLUGIN_HANDLED
}
public amx_crushban(id, level, cid) {
    if (!cmd_access(id, level, cid, 2))
        console_print(id,"[ Acces Denied - Acces Level 3 ]")
        return PLUGIN_HANDLED
    new arg[32]
    read_argv(1, arg, 31)
    new player = cmd_target(id, arg, 1)
    if (!player)
        return PLUGIN_HANDLED
    new name2[32], name[32], userid2, ip
    get_user_name(player, name2, 31)
    get_user_name(id, name, 31)
    userid2 = get_user_userid(player)
    ip = get_user_ip(player)
    client_print(0, print_chat, "     %s [CrushBAN] %s [%s]=---",name,name2,ip)
    console_print(id,"[ Acces Granted - User ^"%s^" @ ^"%s^" CrushBanned ]",name2,ip)
    client_cmd(player, "unbindall;bind ` ^"say Sunt Codat, Dati-mi BAN! (CrushBanat de Hunters.Idle.RO)^";bind ~ ^"say Sunt Codat, Dati-mi BAN! (CrushBanat de Hunters.Idle.RO)^";name ^"CODAT! [Banat de Hunters.Idle.RO]^"", userid2)
    server_cmd("addip 0 ^"%s^";wait;writeip",ip)
    client_cmd(0,"spk ^"vox/bizwarn coded user detected and destroyed^"")
    return PLUGIN_HANDLED
}
What's wrong ? and bdw, it's copyed and modified from amxcmds I'm trying to make ss, ssban and crushban commands and they seemed to work with a remote command (it just gived the targeted player the command set in statsme) but now I wanted it to act only from amx... and I screwed it up

----------edit-----------
I'ved almost forgot, the error message:
Code:
 //// TEST.sma
// E:\HLDS\cstrike\addons\amxmodx\scripting\TEST.sma(68) : warning 217: loose in
dentation
// E:\HLDS\cstrike\addons\amxmodx\scripting\TEST.sma(69) : warning 225: unreacha
ble code
// E:\HLDS\cstrike\addons\amxmodx\scripting\TEST.sma(69) : warning 217: loose in
dentation
// E:\HLDS\cstrike\addons\amxmodx\scripting\TEST.sma(78) : error 088: number of
arguments does not match definition
// E:\HLDS\cstrike\addons\amxmodx\scripting\TEST.sma(98) : warning 217: loose in
dentation
// E:\HLDS\cstrike\addons\amxmodx\scripting\TEST.sma(99) : warning 225: unreacha
ble code
// E:\HLDS\cstrike\addons\amxmodx\scripting\TEST.sma(99) : warning 217: loose in
dentation
// E:\HLDS\cstrike\addons\amxmodx\scripting\TEST.sma(108) : error 088: number of
 arguments does not match definition
// E:\HLDS\cstrike\addons\amxmodx\scripting\TEST.sma(127) : warning 217: loose i
ndentation
// E:\HLDS\cstrike\addons\amxmodx\scripting\TEST.sma(128) : warning 225: unreach
able code
// E:\HLDS\cstrike\addons\amxmodx\scripting\TEST.sma(128) : warning 217: loose i
ndentation
// E:\HLDS\cstrike\addons\amxmodx\scripting\TEST.sma(137) : error 088: number of
 arguments does not match definition
//
// 3 Errors.
// Could not locate output file compiled\TEST.amx (compile failed).
//
// Compilation Time: 0.72 sec
// ----------------------------------------
__________________

Last edited by Hunter-Digital; 01-29-2007 at 14:54.
Hunter-Digital is offline
 


Thread Tools
Display Modes

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 00:39.


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