ViragDevTool

ViragDevTool

19.4k Downloads

Function calls report incorrect return values

Sharparam opened this issue ยท 2 comments

commented

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

commented

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.

commented

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