View Single Post
HamletEagle
AMX Mod X Plugin Approver
Join Date: Sep 2013
Location: Romania
Old 01-16-2022 , 03:43   Re: Indexing a string inside a native will cause outbounds?
Reply With Quote #4

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?
__________________
HamletEagle is offline