Quote:
Originally Posted by comp_noob
1st error:
PHP Code:
L 11/30/2010 - 23:06:57: [SM] Native "EntIndexToEntRef" reported: Invalid entity index -1
L 11/30/2010 - 23:06:57: [SM] Displaying call stack trace for plugin "swarmtools.smx":
L 11/30/2010 - 23:06:57: [SM] [0] Line 72, swarmtools.sp::GetMarineResources()
L 11/30/2010 - 23:06:57: [SM] [1] Line 45, swarmtools.sp::OnMapStart()
and after this error, all the other natives return the wrong value of -1...
and i've found out that m_iClip1 returns the correct current ammo in the active weapon... maybe it can be of some help..
|
The clip amount is the amount if ammo in the weapon's clip. The ammo stocks set the players ammo stock for that weapon (what is used when the clip runs out).
Post is updated again, version 1.1.2. I had some misconceptions about how/when the marine resources were allocated. I was able the mix the first method I was using with sdkhooks with the later findings. It should work now and still not require sdkhooks.
I do appreciate the time you're taking to test for me.