Ham_Item_Holster : Bad arg count.
[HAMSANDWICH] Bad arg count. Expected 3, got 2.
That's the runtime error i got (WIN32, listenserver). My code : Code:
ExecuteHam(Ham_Item_Holster, pActiveItem)Code:
m_pActiveItem->Holster( );Code:
/**Any idea ? hamdata.ini would be false for win32 ? listenserver related ? If someone wnat to try out the code : PHP Code:
|
Re: Ham_Item_Holster : Bad arg count.
I suggest creating a forward with that, if you get that error... Try to see what the third argument is ... (in case of the forward the second one ...)
|
Re: Ham_Item_Holster : Bad arg count.
Can't believe what i see !!
PHP Code:
Code:
Knife 108 0 |
Re: Ham_Item_Holster : Bad arg count.
I'm sure that makes sense :-S
|
Re: Ham_Item_Holster : Bad arg count.
LOL o.O
Edit: Try adding that string to HamExecute :)). |
Re: Ham_Item_Holster : Bad arg count.
May be it makes sense for sawce.
So : ExecuteHam(Ham_Item_Holster, pActiveItem, 0) works. ExecuteHam(Ham_Item_Holster, pActiveItem, "HamFilter") also works. Found only this : Code:
// This is the callback from the module, this handles any fatal errors. |
Re: Ham_Item_Holster : Bad arg count.
I'm also interested in seeing why did the developers put that...
|
Re: Ham_Item_Holster : Bad arg count.
the third arg seems to be skiplocal. HLSDK says skiplocal is 1 if client is predicting weapon animations.
ExecuteHam(Ham_Item_Holster, pActiveItem, 0) or ExecuteHam(Ham_Item_Holster, pActiveItem, 1) I guess "HamFilter" appears because the arg type is not valid. Using ExecuteHam(Ham_Item_Holster, pActiveItem, "HamFilter") will not work and you will get "[HAMSANDWICH] Entity out of range (-1)" |
Re: Ham_Item_Holster : Bad arg count.
Quote:
|
Re: Ham_Item_Holster : Bad arg count.
I think by seems he meant that he is not sure ... :D
|
| All times are GMT -4. The time now is 02:27. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.