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

Function calls report incorrect return values #8

Open
Sharparam opened this issue Aug 9, 2018 · 2 comments
Open

Function calls report incorrect return values #8

Sharparam opened this issue Aug 9, 2018 · 2 comments

Comments

@Sharparam
Copy link

Steps:

  1. Add GetChatTypeIndex
  2. Set arguments to "RAID"
  3. Press the function in list to execute
  4. Observe return value

Expected: 4 (as reported by /dump GetChatTypeIndex("RAID"))

Actual: 0

Screenshots:
Log screenshot
Chat screenshot with /dump

@varren
Copy link
Owner

varren commented Aug 10, 2018

Yeah, ty for reporting. It's just a problem with not intuitive/not standard and badly documented arguments console.

You don't have to use quotations for strings right now:
https://i.gyazo.com/fc8cc68727d5fa1819f540bdcbfd5948.png

"RAID" should be just RAID in console

Will have to update this when i have time and figure out some standard way to use this.
Cant fix right now.

@Sharparam
Copy link
Author

Ah, I see. Quite confusing given how it's formatted.

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