I'm close to test this new combination, but I've noticed you've used
boxsrounds.mdl everywhere, I've changed that:
Code:
HookConVarChange((hRandom = AutoExecConfig_CreateConVar("sm_afd_pistolammo_model", "models/items/boxsrounds.mdl",
"Specify the model to use for pistol ammo boxes.")), OnPistolModelChanged);
GetConVarString(hRandom, g_sPistolModel, sizeof(g_sPistolModel));
SetAppend(appended);
HookConVarChange((hRandom = AutoExecConfig_CreateConVar("sm_afd_otherammo_model", "models/items/boxmrounds.mdl",
"Specify the model to use for other weapon ammo boxes.")), OnOtherModelChanged);
GetConVarString(hRandom, g_sOtherModel, sizeof(g_sOtherModel));
SetAppend(appended);
HookConVarChange((hRandom = AutoExecConfig_CreateConVar("sm_afd_sgammo_model", "models/items/boxbuckshot.mdl",
"Specify the model to use for shotgun ammo boxes.")), OnSGModelChanged);
GetConVarString(hRandom, g_sSGModel, sizeof(g_sSGModel));
SetAppend(appended);
EDIT:
And I recieve this error, while compiling using SM 1.7.1:
Quote:
// X:\sourcemod-1.7.1-windows\addons\sourcemod\scripting\include\sm lib/entities.inc(33) : error 138: const was specified twice
|