AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   SZ_GetSpace: overflow without.. . (https://forums.alliedmods.net/showthread.php?t=66758)

Cheap_Suit 02-08-2008 04:54

SZ_GetSpace: overflow without.. .
 
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]]) 


ConnorMcLeod 02-08-2008 05:52

Re: SZ_GetSpace: overflow without.. .
 
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)

Cheap_Suit 02-08-2008 05:59

Re: SZ_GetSpace: overflow without.. .
 
I took out the part where it does it only for one team.

Max_Cohen 07-10-2011 09:53

Re: SZ_GetSpace: overflow without.. .
 
hi, I am not understood this code fragment! Please, show me all code fragment! thanks!

xPaw 07-10-2011 10:01

Re: SZ_GetSpace: overflow without.. .
 
http://gm4.in/images/facepalm.gif

dFF 07-10-2011 10:07

Re: SZ_GetSpace: overflow without.. .
 
:stupid:

ConnorMcLeod 07-10-2011 11:41

Re: SZ_GetSpace: overflow without.. .
 
http://dazibaoueb.fr/tinymce/jscript...ssion/papy.gif

Max_Cohen 07-11-2011 09:46

Re: SZ_GetSpace: overflow without.. .
 
what? i am not a english man. please help me. in my server i have this error every time.


All times are GMT -4. The time now is 01:27.

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