0109: Expected variables to store function result
function returnOne: int
return 1
end
int x,y
returnOne() // error, expected 1 variable, got 0
x,y = returnOne() // error, expected 1 variable, got 2Possible solutions:
function returnNone
end
function returnOne: int
return 1
end
function returnTwo: int, int
return 1 2
end
int x, y
returnNone()
x = returnOne()
x, y = returnTwo()Last updated