Raised This Month: $51 Target: $400
 12% 

SZ_GetSpace: overflow without.. .


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Cheap_Suit
Veteran Member
Join Date: May 2004
Old 02-08-2008 , 04:54   SZ_GetSpace: overflow without.. .
Reply With Quote #1

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 ErrorSZ_GetSpaceoverflow 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(PLUGINVERSIONAUTHOR)
 
register_forward(FM_PlayerPostThink"fwd_playerpostthink")
 
register_forward(FM_ClientUserInfoChanged"fwd_clientuserinfochanged")
}
 
public 
client_authorized(id)
 
g_playermodel[id] = random_num(08)
 
public 
fwd_clientuserinfochanged(idinfobuffer
{
 static 
buffer[32]
 
engfunc(EngFunc_InfoKeyValueinfobuffer"model"buffer31)
 static 

 
for(09i++) if(equal(bufferg_models[i]))
  return 
FMRES_SUPERCEDE
 
 
return FMRES_IGNORED 
}
 
public 
fwd_playerpostthink(id)

 static 
buffer
 buffer 
engfunc(EngFunc_GetInfoKeyBufferid)
 
engfunc(EngFunc_SetClientKeyValueidbuffer"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(PLUGINVERSIONAUTHOR)
 
register_event("ResetHUD""event_resethud""be")
}
 
public 
client_authorized(id)
 
g_playermodel[id] = random_num(08)
 
public 
event_resethud(id)
 
cs_set_user_model(idg_models[g_playermodel[id]]) 
__________________
HDD fried, failed to backup files. Sorry folks, just don't have free time anymore. This is goodbye.
Cheap_Suit is offline
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 02-08-2008 , 05:52   Re: SZ_GetSpace: overflow without.. .
Reply With Quote #2

I don't know about your error, but it you just use default models, you just need to use cs_set_user_team and set the model there.

Code:
cs_set_user_team(index, {CsTeams,_}:team, {CsInternalModel,_}:model = CS_DONTCHANGE)
With fakemeta, i guess it's :

Code:
/*enum CS_Internal_Models {     CS_DONTCHANGE = 0,     CS_CT_URBAN = 1,     CS_T_TERROR = 2,     CS_T_LEET = 3,     CS_T_ARCTIC = 4,     CS_CT_GSG9 = 5,     CS_CT_GIGN = 6,     CS_CT_SAS = 7,     CS_T_GUERILLA = 8,     CS_CT_VIP = 9,     CZ_T_MILITIA = 10,     CZ_CT_SPETSNAZ = 11 };*/ #define OFFSET_INTERNALMODEL        126 set_pdata_int(id, OFFSET_INTERNALMODEL, 4) dllfunc(DLLFunc_ClientUserInfoChanged, id)
__________________
- tired and retired -

- my plugins -
ConnorMcLeod is offline
Cheap_Suit
Veteran Member
Join Date: May 2004
Old 02-08-2008 , 05:59   Re: SZ_GetSpace: overflow without.. .
Reply With Quote #3

I took out the part where it does it only for one team.
__________________
HDD fried, failed to backup files. Sorry folks, just don't have free time anymore. This is goodbye.
Cheap_Suit is offline
Max_Cohen
New Member
Join Date: Jul 2011
Old 07-10-2011 , 09:53   Re: SZ_GetSpace: overflow without.. .
Reply With Quote #4

hi, I am not understood this code fragment! Please, show me all code fragment! thanks!
Max_Cohen is offline
xPaw
Retired AMX Mod X Moderator
Join Date: Jul 2008
Old 07-10-2011 , 10:01   Re: SZ_GetSpace: overflow without.. .
Reply With Quote #5

__________________
xPaw is offline
dFF
sıɹɹoɥɔ ʞɔnu
Join Date: Oct 2009
Old 07-10-2011 , 10:07   Re: SZ_GetSpace: overflow without.. .
Reply With Quote #6

dFF is offline
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 07-10-2011 , 11:41   Re: SZ_GetSpace: overflow without.. .
Reply With Quote #7

__________________
- tired and retired -

- my plugins -
ConnorMcLeod is offline
Max_Cohen
New Member
Join Date: Jul 2011
Old 07-11-2011 , 09:46   Re: SZ_GetSpace: overflow without.. .
Reply With Quote #8

what? i am not a english man. please help me. in my server i have this error every time.
Max_Cohen is offline
Old 10-30-2013, 13:50
BLANCIKJOINT_
This message has been deleted by YamiKaitou. Reason: slowhacking + spam
Reply



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 16:42.


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