Showing results 1 to 8 of 8
Search took 0.00 seconds.
Search: Posts Made By: Alizia
Forum: Lua/XML Help 10-14-17, 10:55 AM
Replies: 13
Views: 2,105
Posted By Alizia
Yeah... When I tried to delete initiation on...

Yeah... When I tried to delete initiation on pairs, the error go from 82 to 92... I didn't noticed this.

It compile now :)
Forum: Lua/XML Help 10-14-17, 10:30 AM
Replies: 13
Views: 2,105
Posted By Alizia
Okay, I find out the problem... I let a...

Okay, I find out the problem... I let a initialisation on a ipairs... I'm dumb.

Thanks for all, I will post the finale addon when it will be ready.
Forum: Lua/XML Help 10-14-17, 10:02 AM
Replies: 13
Views: 2,105
Posted By Alizia
Of course I don't call New function, the error is...

Of course I don't call New function, the error is on check syntax on the addon, before any call, I can't call it before fix this. :/
Forum: Lua/XML Help 10-14-17, 05:11 AM
Replies: 13
Views: 2,105
Posted By Alizia
I tried this, same error. PS : The function isn't...

I tried this, same error.
PS : The function isn't even called, it's like a syntax error.
Forum: Lua/XML Help 10-13-17, 09:02 PM
Replies: 13
Views: 2,105
Posted By Alizia
-- Class Pokemon -- CPA_Pokemon_Class =...

-- Class Pokemon --
CPA_Pokemon_Class = {}
CPA_Pokemon_Class.__index = CPA_Pokemon_Class

function CPA_Pokemon_Class:New()
local self = {}
setmetatable(self, CPA_Pokemon_Class)

self.stat =...
Forum: Lua/XML Help 10-13-17, 06:57 PM
Replies: 13
Views: 2,105
Posted By Alizia
I try this, the same error popup " 'do' expected...

I try this, the same error popup " 'do' expected near 'in' ". It's like self.tab isn't considered like a table. :confused:
Forum: Lua/XML Help 10-13-17, 06:51 PM
Replies: 13
Views: 2,105
Posted By Alizia
Thanks for the answer. I try this, the same...

Thanks for the answer.



I try this, the same error popup " 'do' expected near 'in' ". It's like self.tab isn't considered like a table or 'do' is ignored... :confused:
Forum: Lua/XML Help 10-13-17, 12:58 PM
Replies: 13
Views: 2,105
Posted By Alizia
OOP and metatables - pairs problem

Hello everyone,

I want to use some classes for my addon, but I have a problem with pairs() in methods. A exemple :

ClassTest = {}
ClassTest.__index = ClassTest

function ClassTest:New()
local...
Showing results 1 to 8 of 8