Hi, somehow I think that this my "home-made" plugin causes this error on my server:
sz_getspace: overflow on
Can anyone check if this code is written correctly and doesn't spam any commands to the client? Thanks.
Code:
#include <amxmodx>
#include <amxmisc>
new num
new map[32]
new pCvar_enableswap
new pCvar_swapround
new pCvar_boost
new pCvar_hidetime
public plugin_init()
{
register_plugin("PapildomiLJC", "1.2", "arbata");
get_mapname(map, charsmax(map))
pCvar_enableswap = register_cvar("mp_swapspawns", "0")
pCvar_swapround = register_cvar("mp_swapround", "0")
pCvar_boost = register_cvar("hns_semiclip", "0")
pCvar_hidetime = register_cvar("hns_hidetime", "20")
set_task(3.0, "hns_mod")
set_task(8.0, "check_random")
}
public check_random()
{
num = random_num(5, 10);
set_pcvar_num(pCvar_enableswap, 2)
set_pcvar_num(pCvar_swapround, num)
}
public hns_mod()
{
if(containi(map, "hns_") != -1) {
set_pcvar_num(pCvar_boost, 1);
set_pcvar_num(pCvar_hidetime, 10);
}
else if(containi(map, "rayish_") != -1) {
set_pcvar_num(pCvar_boost, 1);
set_pcvar_num(pCvar_hidetime, 10);
}
else if(containi(map, "c21_") != -1) {
set_pcvar_num(pCvar_boost, 1);
set_pcvar_num(pCvar_hidetime, 10);
}
}