[FIXED]unexpected symbol ...

Place to get help with not working mods / modding interface.
User avatar
LuziferSenpai
Filter Inserter
Filter Inserter
Posts: 393
Joined: Tue Jul 08, 2014 10:06 am
Contact:

[FIXED]unexpected symbol ...

Post 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
Last edited by LuziferSenpai on Sun Dec 11, 2016 6:00 pm, edited 1 time in total.
Coding is awesome!
Animes are love!
Factorio is life!

My MODs:
Click

Greetz,

Senpai
User avatar
prg
Filter Inserter
Filter Inserter
Posts: 947
Joined: Mon Jan 19, 2015 12:39 am
Contact:

Re: unexpected symbol ...

Post by prg »

The function definition is missing an end (right after the end for the if).
Automatic Belt (and pipe) Planner—Automate yet another aspect of constructing your factory!
User avatar
LuziferSenpai
Filter Inserter
Filter Inserter
Posts: 393
Joined: Tue Jul 08, 2014 10:06 am
Contact:

Re: unexpected symbol ...

Post by LuziferSenpai »

prg wrote:The function definition is missing an end (right after the end for the if).
Ty, wow that was a fail...
Coding is awesome!
Animes are love!
Factorio is life!

My MODs:
Click

Greetz,

Senpai
Post Reply

Return to “Modding help”