View Single Post
11/12/14, 08:11 AM   #5
Flagrick
 
Flagrick's Avatar
AddOn Author - Click to view addons
Join Date: Apr 2014
Posts: 24
FOUND IT !

Lua Code:
  1. --local pctexts = zo_strformat( '|c736F6E(<<1>>%)|r', pccurrent ) --> error
  2. local pctexts = zo_strformat( '(<<1>>%)', pccurrent ) --> OK

and then i use this code in
Lua Code:
  1. local finaldbgtext=zo_strformat( '|c6BB5FF<<1>>|r  |c736F6E-> <<2>> / <<3>>  <<4>>|r |cFFFFFF[<<t:5>>]|r', self:FormatAmount(RealGain), self:FormatAmount(SkillXp), self:FormatAmount(SkillXpTotal), pctexts, skillName )

So, i think that use coloration two times on the same text gives an error with zo_strformat().
it's now corrected.

thx merlight for help.
  Reply With Quote