Thread
: [Solved]
Indexing a string while copying by reference
View Single Post
Natsheh
Veteran Member
Join Date: Sep 2012
01-16-2022 , 03:49 Re: Indexing a string inside a native will cause outbounds?
#
5
Quote:
Originally Posted by
HamletEagle
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
View Public Profile
Send a private message to Natsheh
Find More Posts by Natsheh