Page 1 of 1

[FIXED]unexpected symbol ...

Posted: Sun Dec 11, 2016 5:02 pm
by LuziferSenpai
Hey,

next Error that i cant see <.<

Code: Select all

remote.add_interface( "SenpaisElectricTrainsList", { TrainData = function ( nama, multi ) if nama and multi then Senpais.ElectricTrains.Trains[#Senpais.ElectricTrains.Trains + 1] = { name = nama, multy = multi } end } )

remote.call( "SenpaisElectricTrainsList", "TrainData", "Senpais-Electric-Train", 1 )
Pls help me.

Greetz,

Luzifer

Re: unexpected symbol ...

Posted: Sun Dec 11, 2016 5:53 pm
by prg
The function definition is missing an end (right after the end for the if).

Re: unexpected symbol ...

Posted: Sun Dec 11, 2016 6:00 pm
by LuziferSenpai
prg wrote:The function definition is missing an end (right after the end for the if).
Ty, wow that was a fail...