Quantcast WoWInterface - View Single Post - Bug Report: % Symbol
View Single Post
12-05-07, 01:28 PM   #1
Cosmic Cleric
A Deviate Faerie Dragon
 
Cosmic Cleric's Avatar
AddOn Author - Click to view addons
Join Date: Jun 2005
Posts: 15
Exclamation Bug Report: % Symbol

Hello. Using the latest version of WoW UI Designer. Found a problem with how it parses LUA code.

Specifically, I have this piece of code...

Code:
slot  = ( aUnitNumber - 1 ) % 5 + 1;
The "%" symbol is generating an "unexpected symbol" error in the Messages section, and the line on the left side of the editor window that shows the start to end of a function, stops at the line.

Don't know why, but WOW UI Designer doesn't like to see a "%" character in LUA code, which is as far as I know, a valid math symbol in LUA (http://www.lua.org/manual/5.1/manual.html#2.5.1 ).
  Reply With Quote