Raised This Month: $51 Target: $400
 12% 

cs_get_user_bpammo amxx1.8.3 git5057


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
JusTGo
Veteran Member
Join Date: Mar 2013
Old 05-11-2016 , 09:07   cs_get_user_bpammo amxx1.8.3 git5057
Reply With Quote #1

hello all i have problem with cs_get_user_bpammo when trying to get the ammo of deagle it throws an error probelm doesn't exist on git5044.
__________________
JusTGo is offline
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 05-11-2016 , 10:49   Re: cs_get_user_bpammo amxx1.8.3 git5057
Reply With Quote #2

What error you're talking about? How to reproduce? Please take the time to post a complete bug report, this is not useful otherwise.
__________________
Arkshine is offline
JusTGo
Veteran Member
Join Date: Mar 2013
Old 05-11-2016 , 10:57   Re: cs_get_user_bpammo amxx1.8.3 git5057
Reply With Quote #3

PHP Code:
L 05/11/2016 15:05:16: [CSTRIKEInvalid weapon id 16
L 05
/11/2016 15:05:16: [AMXXDisplaying debug trace (plugin "zp50_buy_menus.amxx"version "5.0.8a")
L 05/11/2016 15:05:16: [AMXXRun time error 10native error (native "cs_get_user_bpammo")
L 05/11/2016 15:05:16: [AMXX]    [0zp50_buy_menus.sma::drop_weapons (line 626)
L 05/11/2016 15:05:16: [AMXX]    [1zp50_buy_menus.sma::buy_secondary_weapon (line 529)
L 05/11/2016 15:05:16: [AMXX]    [2zp50_buy_menus.sma::menu_buy_secondary (line 517
Attached Files
File Type: sma Get Plugin or Get Source (zp50_buy_menus.sma - 416 views - 21.5 KB)
__________________
JusTGo is offline
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 05-11-2016 , 12:36   Re: cs_get_user_bpammo amxx1.8.3 git5057
Reply With Quote #4

Do you have a plugin which alters or blocks WeaponList message?
__________________
Arkshine is offline
Whitez
Member
Join Date: Apr 2016
Location: London, UK
Old 05-11-2016 , 13:48   Re: cs_get_user_bpammo amxx1.8.3 git5057
Reply With Quote #5

Try with the latest build, which is i believe 5057
Whitez is offline
JusTGo
Veteran Member
Join Date: Mar 2013
Old 05-11-2016 , 14:21   Re: cs_get_user_bpammo amxx1.8.3 git5057
Reply With Quote #6

Quote:
Originally Posted by Arkshine View Post
Do you have a plugin which alters or blocks WeaponList message?
nope i m using default zp5.0.8a with no modifications. didn't have the probelm on amx1.8.2 or amx1.8.3 git5044

Quote:
Originally Posted by Whitez View Post
Try with the latest build, which is i believe 5057
i m using lastest build 6153.
__________________

Last edited by JusTGo; 05-11-2016 at 14:24.
JusTGo is offline
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 05-11-2016 , 14:48   Re: cs_get_user_bpammo amxx1.8.3 git5057
Reply With Quote #7

Natives needs the ammo type index.

In 1.8.2, such index was hardcoded.
In 1.8.3-dev < 5057, I wanted to avoid that and did loop through the player's inventory to retrieve the weapon index and then the ammo index.
In 1.8.3-dev >= 5057, I changed again how to retrieve ammo index, because people were setting value after deleting weapon. It was valid before, and since the weapon was not more in player's inventory it was failing. So I've changed the way by retrieving ammo index through the WeaponList message, sent when the server is fully activated.

By getting such error, it means ammo index was not available. I'm using WeaponList because I wanted to give the native to be still usable if someone customize a weapon. I'm not sure how it's possible unless something has blocked or altered the message. Don't know atm. Maybe we will have no choice to keep the ammo index hardcoded for the sake of backward compatibility :/.
__________________
Arkshine is offline
JusTGo
Veteran Member
Join Date: Mar 2013
Old 05-11-2016 , 14:59   Re: cs_get_user_bpammo amxx1.8.3 git5057
Reply With Quote #8

Quote:
Originally Posted by Arkshine View Post
Natives needs the ammo type index.

In 1.8.2, such index was hardcoded.
In 1.8.3-dev < 5057, I wanted to avoid that and did loop through the player's inventory to retrieve the weapon index and then the ammo index.
In 1.8.3-dev >= 5057, I changed again how to retrieve ammo index, because people were setting value after deleting weapon. It was valid before, and since the weapon was not more in player's inventory it was failing. So I've changed the way by retrieving ammo index through the WeaponList message, sent when the server is fully activated.

By getting such error, it means ammo index was not available. I'm using WeaponList because I wanted to give the native to be still usable if someone customize a weapon. I'm not sure how it's possible unless something has blocked or altered the message. Don't know atm. Maybe we will have no choice to keep the ammo index hardcoded for the sake of backward compatibility :/.
mayby make new native just to get the ammo type index ?
__________________
JusTGo is offline
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 05-11-2016 , 16:14   Re: cs_get_user_bpammo amxx1.8.3 git5057
Reply With Quote #9

Can you elaborate a simple test to reproduce the issue? Does it happen always? I really don't see how it's possible to fail. Are you using reGameDLL?
__________________
Arkshine is offline
JusTGo
Veteran Member
Join Date: Mar 2013
Old 05-11-2016 , 16:35   Re: cs_get_user_bpammo amxx1.8.3 git5057
Reply With Quote #10

Quote:
Originally Posted by Arkshine View Post
Can you elaborate a simple test to reproduce the issue? Does it happen always? I really don't see how it's possible to fail. Are you using reGameDLL?
i m using normal hlds with zp5.0.8a and when i spawn and choose weapons from buymenu once i choose primary weapon it works then in secondry weapons menu when i choose deagle it doesn't work and throw that error.
__________________
JusTGo is offline
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 18:37.


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