Thread: ...
View Single Post
HamletEagle
AMX Mod X Plugin Approver
Join Date: Sep 2013
Location: Romania
Old 09-16-2021 , 11:04   Re: ArrayGetString2
Reply With Quote #8

Code:
native get_string(param, dest[], maxlen)
param
Argument to retrieve, starting from 1

Why are you passing a dynamic array in there, how is that supposed to work? You have to pass a number corresponding to the index of the parameter you want to retrieve.

If you have a native like: native example(strParam[], anotherStrParam[]) then you would pass 1 to retrieve the value of strParam and 2 to retrieve the value of anotherStrParam.

Tag mismatch is not an error, it is a warning that happens when 2 tags do not match. For example, your ZombieName is a dynamic array tagged as "Array:" while the native does not expect such a tag for the first parameter("param" is not tagged).
__________________

Last edited by HamletEagle; 09-16-2021 at 11:05.
HamletEagle is offline