Passing numbers through function

I have a function called loadData in a file Functions

function loadData(x,y)
print(x)
print(y)
end

I call this function from a different file

Functions:loadData(30,50)

When I check the data values in the console, the x value is a table, and the y value is the x value (30 in this case). To fix this, I have to make the header

function loadData(none,x,y), where I none is just a placeholder for the table.

I’ve just been using this workaround for a while, but now it has caught up to me and I’m experiencing more errors. What am I doing wrong? [import]uid: 14678 topic_id: 6498 reply_id: 306498[/import]

The colon means you are calling is as an object method, not as a normal function. The first parameter of an object method is always the object itself, traditionally referred to as “self.”

If you don’t want that then don’t use a colon, just use a period. [import]uid: 12108 topic_id: 6498 reply_id: 22520[/import]