shanapu / MyJailShop

MyJailShop is a redux rewrite of Dkmuniz Jail Shop and provide you a high customizable shop with credits system intended for jailbreak server.
https://forums.alliedmods.net/showthread.php?t=288712
GNU General Public License v3.0
13 stars 9 forks source link

SetPlayerAmmo (deagle) issue #43

Closed 1DreaM1 closed 5 years ago

1DreaM1 commented 5 years ago

Whenever I buy deagle, it's fully charged. This issue appears since I've uploaded the latest myjailshop stable built. I'm using: the latest sourcemod 1.9, the latest metamod 1.10 and also the latest stable MyJailbreak from 09/01/19.

This error code appears whenever someone buy deagle:

[SM] Exception reported: Property "m_iPrimaryReserveAmmoCount" not found (entity 180/weapon_deagle) [SM] Blaming: myjailshop.smx [SM] Call stack trace: [SM] [0] SetEntProp [SM] [1] Line 248, /home/travis/build/shanapu/MyJailShop/addons/sourcemod/scripting/include/mystocks.inc::SetPlayerAmmo [SM] [2] Line 2477, addons/sourcemod/scripting/myjailshop.sp::Item_Deagle [SM] [3] Line 2217, addons/sourcemod/scripting/myjailshop.sp::Handler_Menu_OpenShop

Thanks for help.

fzr87 commented 5 years ago

for me bug was tha who buy deagle not take money from him .

shanapu commented 5 years ago

Thank you for reporting. This is CSGO right? Seems they removed m_iPrimaryReserveAmmoCount or there is another error in the code. I will investigate this.

1DreaM1 commented 5 years ago

yes csgo.

1DreaM1 commented 5 years ago

Something new ?

Bara commented 5 years ago

https://github.com/shanapu/MyJailShop/blob/4d2da1b73aead17e8130f89e8a6246c44d84193e/addons/sourcemod/scripting/include/mystocks.inc#L243 https://github.com/shanapu/MyJailShop/blob/4d2da1b73aead17e8130f89e8a6246c44d84193e/addons/sourcemod/scripting/include/mystocks.inc#L248-L249 Change Prop_Data to Prop_Send.

So far I know it still works fine (Example: Silent AWP in TTT).

1DreaM1 commented 5 years ago

And also since uploaded the newest MyJS, some player's are receiving max credits -> sm_jailshop_credits_max (50000) every roundstart.

Hexer10 commented 5 years ago

@1DreaM1 please, file an issue in the MyJailShop repo, about that issue

1DreaM1 commented 5 years ago

Thanks for help, works perfect.

Hexer10 commented 5 years ago

I'll leave this open just to remember us to fix the issue in the main branch, If I have enough time I'll try to do it by tomorrow.