Raised This Month: $ Target: $400
 0% 

Getting wrong player index


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
XAM
Junior Member
Join Date: Mar 2008
Old 07-27-2008 , 01:30   Re: Getting wrong player index
Reply With Quote #2

here's my HLGUARD action lines when detecting stuff.
PHP Code:
hlg_action "b:found" "hlguardban \'%S\' \'3600\' \'%y\';wait;kick #%u [HLGUARD] Banned permanent. Reason: %y"
hlg_action "t:found" "hlguardban \'%S\' \'1\' \'%y\';wait;kick #%u [HLGUARD] Banned 1 day. Reason: %y" 
And here is my plugin_init()
PHP Code:
public plugin_init() {
    
register_plugin("XamNetworks""1.0""XAM")
    
register_clcmd("adminmenu""adminMenu")
    
register_clcmd("say","chatCommands")
    
register_clcmd("say_team","chatCommands")
    
register_srvcmd("hlguardban","hlguardBan")
    
register_event("SendAudio","end_round","a","2=%!MRAD_terwin","2=%!MRAD_ctwin","2=%!MRAD_rounddraw")
    
cvar_cvarCheck register_cvar("x_cvarcheck","1")
    
cvar_pingCheck register_cvar("x_pingcheck","1")
    
cvar_pingMax register_cvar("x_pingmax","70")
    
cvar_pingTimes register_cvar("x_pingtimes","5")
    return 
PLUGIN_CONTINUE

Problem solved!
I've made a mistake at this line, which resulted that it only read the first number.
PHP Code:
read_argv(1,bIds,1
So I made bIds[3] and bId[3], then increased read_argv(1,bIds,2)

Last edited by XAM; 07-27-2008 at 01:44.
XAM 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:31.


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