Raised This Month: $ Target: $400
 0% 

Block Button ID


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
maqi
Senior Member
Join Date: Apr 2017
Location: Serbia
Old 06-16-2018 , 17:20   Re: Block Button ID
Reply With Quote #1

I hope you understand what we are doing and not just copy pasting tho

Now, You read the file correctly, you wan't to check if a player pushed a button from your array right ?

You can't use g_iButtons[ButtonIDs], because ButtonIDs is just a counter ( You should change its name tho ), so if ButtonIDs == 3, You would just be getting iButtons[3], but in our example it would cause an index out of bounds error anyway.

So what you need to use is loop through all g_iButtons and check if any of them match.
__________________
stuff
maqi 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 04:39.


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