Raised This Month: $ Target: $400
 0% 

Clip ammo bug (solved)


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
1pa1pb
Junior Member
Join Date: Jul 2014
Old 07-07-2014 , 08:38   Clip ammo bug (solved)
Reply With Quote #1

hello everyone. i got a little problem here.

this gun Aeolis has "150" ammo, however its plugin is written "125" ammo.
so i changed the clip size to "150", and tested it in game,
it didn't show "150" clip ammo but a "106" clip ammo showed.



i just know how to change constants in amxx scripting,
so please help. thank you.

source files can be found here.

Last edited by 1pa1pb; 07-09-2014 at 03:31. Reason: solved
1pa1pb is offline
NiHiLaNTh
Way Past Expiration
Join Date: May 2009
Location: Latvia
Old 07-07-2014 , 12:37   Re: Clip ammo bug (CS Weapon: Aeolis)
Reply With Quote #2

When you send number >105 clip ammo HUD start acting weird. It show some random values instead of needed one :/
__________________

NiHiLaNTh is offline
Send a message via Skype™ to NiHiLaNTh
1pa1pb
Junior Member
Join Date: Jul 2014
Old 07-07-2014 , 13:26   Re: Clip ammo bug (CS Weapon: Aeolis)
Reply With Quote #3

Quote:
Originally Posted by NiHiLaNTh View Post
When you send number >105 clip ammo HUD start acting weird. It show some random values instead of needed one :/
but somehow "125" works.. :/
1pa1pb is offline
m4m3ts
Senior Member
Join Date: Jun 2012
Old 07-08-2014 , 08:48   Re: Clip ammo bug (CS Weapon: Aeolis)
Reply With Quote #4

Quote:
Originally Posted by 1pa1pb View Post
but somehow "125" works.. :/
because 125 is max clip in Normal CS.
m4m3ts is offline
1pa1pb
Junior Member
Join Date: Jul 2014
Old 07-08-2014 , 11:10   Re: Clip ammo bug (CS Weapon: Aeolis)
Reply With Quote #5

Quote:
Originally Posted by m4m3ts View Post
because 125 is max clip in Normal CS.
so do you mean 150 is impossible?
1pa1pb is offline
m4m3ts
Senior Member
Join Date: Jun 2012
Old 07-08-2014 , 13:28   Re: Clip ammo bug (CS Weapon: Aeolis)
Reply With Quote #6

Quote:
Originally Posted by 1pa1pb View Post
so do you mean 150 is impossible?
yes
m4m3ts is offline
meTaLiCroSS
Gaze Upon My Hat
Join Date: Feb 2009
Location: Viña del Mar, Chile
Old 07-08-2014 , 13:45   Re: Clip ammo bug (CS Weapon: Aeolis)
Reply With Quote #7

Everything had specific reasons.

https://wiki.alliedmods.net/Half-Lif...ents#CurWeapon

"ClipAmmo" is written as a "byte"

And a byte (or char): http://stackoverflow.com/questions/5...f-int-long-etc

It's between:

Quote:
-127 to 127
Some basics that you must know before sending huge numbers on a write_*
__________________
Quote:
Originally Posted by joropito View Post
You're right Metalicross
meTaLiCroSS is offline
claudiuhks
Yam Inside®™℠
Join Date: Jan 2010
Location: Living Randomly
Old 07-09-2014 , 16:56   Re: Clip ammo bug (CS Weapon: Aeolis)
Reply With Quote #8

Quote:
Originally Posted by meTaLiCroSS View Post
If signed. If unsigned, up to 255.
__________________
claudiuhks is offline
Send a message via MSN to claudiuhks Send a message via Yahoo to claudiuhks Send a message via Skype™ to claudiuhks
1pa1pb
Junior Member
Join Date: Jul 2014
Old 07-09-2014 , 03:30   Re: Clip ammo bug (CS Weapon: Aeolis)
Reply With Quote #9

Quote:
Originally Posted by m4m3ts View Post
yes
Quote:
Originally Posted by meTaLiCroSS View Post
Everything had specific reasons.

https://wiki.alliedmods.net/Half-Lif...ents#CurWeapon

"ClipAmmo" is written as a "byte"

And a byte (or char): http://stackoverflow.com/questions/5...f-int-long-etc

It's between: -127 to 127

Some basics that you must know before sending huge numbers on a write_*
thank you
(i am a new-newbie

Last edited by 1pa1pb; 07-09-2014 at 03:31.
1pa1pb is offline
Reply


Thread Tools
Display Modes

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 21:05.


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