AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Get cookie for helping, open me (https://forums.alliedmods.net/showthread.php?t=187809)

kileedyg 06-18-2012 10:25

Get cookie for helping, open me
 
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, no output:
Quote:

myserverip:serverport:Outgoing message overflow

Exolent[jNr] 06-18-2012 12:48

Re: Get cookie for helping, open me
 
Create a new thread with a topic title that describes your post.


All times are GMT -4. The time now is 06:08.

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