View Single Post
Natsheh
Veteran Member
Join Date: Sep 2012
Old 01-16-2022 , 03:49   Re: Indexing a string inside a native will cause outbounds?
Reply With Quote #5

Quote:
Originally Posted by HamletEagle View Post
The first one can produce an index out of bounds error since you pass the entire array size as 3rd param but the string is smaller because it is sliced.

The second one looks fine.

Are you actually getting an error? What are you really asking?

Yeah i am still getting undefined crashes so its best to avoid the first example.
__________________
@Jailbreak Main Mod v2.7.0 100%
@User Tag Prefix 100% done !
@Mystery Box 100% done !
@VIP System 100% done !


Last edited by Natsheh; 01-16-2022 at 03:51.
Natsheh is offline
Send a message via MSN to Natsheh Send a message via Skype™ to Natsheh