Raised This Month: $ Target: $400
 0% 

Solved Console Keeps Saying Index Out of Bounds


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
asdian
Member
Join Date: Sep 2016
Location: Indonesia
Old 01-17-2023 , 07:16   Re: Console Keeps Saying Index Out of Bounds
Reply With Quote #1

Quote:
Originally Posted by Natsheh View Post
Also try not hard code your script, for example try to give 43 offset it's proper name.
what's wrong with hard code?
asdian is offline
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 01-17-2023 , 22:23   Re: Console Keeps Saying Index Out of Bounds
Reply With Quote #2

Quote:
Originally Posted by asdian View Post
what's wrong with hard code?
Magic Numbers. tl;dr, it is not clear what the value actually means making it hard for people to understand why you chose that number. This will even affect the person who originally wrote the code in the future when they forget why they used that number.
__________________

Last edited by fysiks; 01-17-2023 at 22:24.
fysiks 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 15:39.


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