Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

misidentifies handgunMagazine return as string #1

Open
MildlyInterested opened this issue Aug 21, 2023 · 1 comment
Open

misidentifies handgunMagazine return as string #1

MildlyInterested opened this issue Aug 21, 2023 · 1 comment

Comments

@MildlyInterested
Copy link

this code

_items append handgunMagazine player;

gets flagged with the following error: "append" does not support left side of type "Array" and right side of type "String" despite handgunMagazine returning an array.

@LordGolias
Copy link
Contributor

Yeap, I also noticed it! It is a bug in Arma itself - calling supportInfo "i:handgunMagazine" returns

[[
"u",
"handgunmagazine",
"handgunMagazine",
"Return the names of the types of currently loaded magazines in given weapon.",
"",
"",
"STRING",
"",
"OBJECT",
"handgunMagazine vehicle"
]]

the "STRING" indicates the return type, which is incorrect...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants