ViragDevTool icon indicating copy to clipboard operation
ViragDevTool copied to clipboard

Function calls report incorrect return values

Open Sharparam opened this issue 6 years ago • 2 comments

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

Sharparam avatar Aug 09 '18 21:08 Sharparam

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.

varren avatar Aug 10 '18 13:08 varren

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

Sharparam avatar Aug 10 '18 14:08 Sharparam