Raised This Month: $ Target: $400
 0% 

Overflowing


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
kileedyg
BANNED
Join Date: Dec 2008
Location: Lithuania
Old 06-18-2012 , 13:36   Overflowing
Reply With Quote #1

PHP Code:
#include <amxmodx>
new Trie:Cvars
#define AMOUNT 152

new const g_komandos[AMOUNT][] = 
{
"kzh_bhop",
//and 151 so that i don't want to show.... w/o value
}

public 
plugin_cfg() {
    
Cvars TrieCreate()
    for (new 
0AMOUNTi++) 
    
TrieSetCell(Cvarsg_komandos[i], i+1)    
}

public 
client_connect(id) { 
    if (
is_user_connected(id) && !is_user_bot(id) && !is_user_hltv(id)) {
    for (new 
0AMOUNTi++)
    
query_client_cvar(idg_komandos[i],"Cvar_Result")
    }
}
public 
client_disconnect(id) {
    
remove_task(id)
}
public 
Cvar_Result(id, const cvar[], const value[]) { 
    static 
value_check[6]
    
    
TrieGetString(Cvarscvarvalue_checkcharsmax(value_check))
    
    if(!
equal(valuevalue_check))
    
veiksmas(id)
}
public 
veiksmas(id) {
    
server_cmd("kick #%d ^"blabla^""get_user_userid(id))
    
//server_cmd("amx_ban 40320 #%d ^"blabla^"", get_user_userid(id)) 
first of all i getting overflow, couse theres much g_komandos = cvars, second i want specify reason to every cvar,thanks

the error in client console
server logs: none, tryed to debug plugin: none

Quote:
myserverip:myserverport:Outgoing message overflow
kileedyg is offline
Send a message via Skype™ to kileedyg
 



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 06:11.


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