Here Is My Probleme I Hope You Can solve It For Me:
https://files.facepunch.com/forum/upload/318080/cfd489f1-a92e-4c61-98a0-8b4c8b69ab15/Sans titre.png
Can you move the error out of the way so we can actually see whats there?
productInfo={}
function productInfo:New()
local self={};
SCAN_Date=1;
local date;
local day;
local month;
local year;
local tempdate={}
function self:GetDate(scan_date,...)
local n_obj={...}
for i in pairs(n_obj) do
tempdat[i]=Input.GetText(n_obj[i])
end
Date=tempdate[1].."/"..tempdate[2].."/"..tempdate[3];
if scan_date == SCAN_Date then
day=tunumber(tempdate[1])-4
month=tnumber(tempdate[2])
year=tunumber(tempdate[3])
if day<1 then
day=day-12
if month<1 then
month=month-12
year=year-1
if year<1
then
year=year-1
end
end
local monthlength={31,28,31,30,31,30,31,31,30,31,30,31}
local monthlength[[month]-day *(-1)
end
if day<10 then day="0"..day end
if month<10 then month="0"..day end
Date=day.."/"..month.."/"..year;
end
Dialog.Message("",Date)
return Date;
end
function self:EmptyInput(...)
local n_obj={...}
for i in pairs(n_obj)do
Input.SetText(n_obj)[i],"")
if i ~=1 and i ~=7 then
Input.SetEnabled(n_obj)[i],false)
end
end
end
return self
end
Product={}
function producer:New()
local self={}
local num_row
function self:InsertItem(pro_name,start_date,end_date)
num_row = Grid.GetRowCount=("Grid1")
Grid.InsertRow("Grid1",-1,true)
Grid.SetCellText("Grid1",num_row,0,pro_name,true)
Grid.SetCellText("Grid1",num_row,0,start_date,true)
Grid.SetCellText("Grid1",num_row,0,end_date,true)
end
return self
end
product={}
function product:New()
local self={}local num_row
function self:InsertItem(pro_name,stat_date,end_date)
num_row=Grid.GetRowCount("Grid1")
Grid.InsertRow("Grid1",-1,true)
Grid.SetCellText("Greid1",num_row,0,pro_name,true)
Grid.SetCellText("Greid1",num_row,1,start_date,true)
Grid.SetCellText("Greid1",num_row,3,end_date,true)
end
return self
end
On line 61 you have an extra bracket
local monthlength[[month]-day *(-1)
this is where the problem is, just remove that extra '['
why do you even have month is []? i dont see any reason to have that in the brackets. just do it without the brackets
I'm pretty sure this isn't even Garry's Mod...
no. is autoplay media studio (whatever that is)
For someone who paid $200 for software your not really that good at reading are you? This forum is for problems in Garry's Mod Lua, not regular lua problems in 3rd party IDE's.
how you know he got payd 200?
google
https://files.facepunch.com/forum/upload/112953/f5317126-ba96-47c1-b4d1-05e8d1ba3e66/image.png
How do you know he didn't pirate it?
True.
ok,that's fine,why as soon as you talking about the sofware and the pirating you didn't help ans benifit as,you know that the majority of computer users pirate the softwares,and that's the truth,no body can change this truth.
While the title on the sub-forum does say; "A place for developers to discuss Lua developing".
Its under the header "Garry's Mod" and its generally used for gmod. (I could be wrong as the forum have undergone so many changes lately that I'm unsure)
But I think you would find more help under: Programming
PS. Piracy is frowned upon here.
ok thanx for help any way
Sorry, you need to Log In to post a reply to this thread.