I get this error below playing with 21+ pod bots with the code below. Does anyone know what's wrong? Or is it the bots...
PHP Code:
Fatal Error: SZ_GetSpace: overflow without FSB_ALLOWOVERFLOW set on Server Reliable Datagram
Code 1:
PHP Code:
#include <amxmodx>
#include <fakemeta>
#define PLUGIN "handle models"
#define AUTHOR "Unknown"
#define VERSION "1.0"
new g_playermodel[33]
new const g_models[9][] = { "urban", "terror", "leet", "arctic", "gsg9", "gign", "sas", "guerilla", "vip" }
public plugin_init()
{
register_plugin(PLUGIN, VERSION, AUTHOR)
register_forward(FM_PlayerPostThink, "fwd_playerpostthink")
register_forward(FM_ClientUserInfoChanged, "fwd_clientuserinfochanged")
}
public client_authorized(id)
g_playermodel[id] = random_num(0, 8)
public fwd_clientuserinfochanged(id, infobuffer)
{
static buffer[32]
engfunc(EngFunc_InfoKeyValue, infobuffer, "model", buffer, 31)
static i
for(i = 0; i < 9; i++) if(equal(buffer, g_models[i]))
return FMRES_SUPERCEDE
return FMRES_IGNORED
}
public fwd_playerpostthink(id)
{
static buffer
buffer = engfunc(EngFunc_GetInfoKeyBuffer, id)
engfunc(EngFunc_SetClientKeyValue, id, buffer, "model", g_models[g_playermodel[id]])
return FMRES_IGNORED
}
Code 2:
PHP Code:
#include <amxmodx>
#include <cstrike>
#define PLUGIN "handle models"
#define AUTHOR "Unknown"
#define VERSION "1.0"
new g_playermodel[33]
new const g_models[9][] = { "urban", "terror", "leet", "arctic", "gsg9", "gign", "sas", "guerilla", "vip" }
public plugin_init()
{
register_plugin(PLUGIN, VERSION, AUTHOR)
register_event("ResetHUD", "event_resethud", "be")
}
public client_authorized(id)
g_playermodel[id] = random_num(0, 8)
public event_resethud(id)
cs_set_user_model(id, g_models[g_playermodel[id]])
__________________
HDD fried, failed to backup files. Sorry folks, just don't have free time anymore. This is goodbye.