Hi to everyone, i'm trying do make the plugin to get the currentuser and then use that information but i have some problems
Code
local SG_UserP = CurrentProfile()["Name"]
--local SG_View = Root().ShowData.UserProfiles.LIVE.Views
--Printf(tostring(SG_View))
local SG_View = ("Root().ShowData.UserProfiles."..SG_UserP..".Views")
Printf(SG_View)
local SG_NumV = 151
local SG_NamV = 1
for i = 10,1,-1
do
SG_View[tonumber(SG_NumV)]:Set("Name","Extra " ..SG_NamV.."")
SG_NamV = SG_NamV+1
SG_NumV = SG_NumV+1
end
Display More
the first row works perfecly and in the 5 row i can read correctly the Local Var write as the 2 row for example, but it will not work inside at the for i loop, it give me an error
As you can see the printf(SG_View) have the correct syntax but will not work.
if i use the second row and comment out the 4th row, works perfectly.
What im doing wrong?