• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

TFS 1.X+ TFS 1.3 | Calling function, returns a table?

Mjmackan

Mapper ~ Writer
Premium User
Joined
Jul 18, 2009
Messages
1,424
Solutions
15
Reaction score
177
Location
Sweden
Hi!

When calling for a function all i get back is a table value (function: 0x039a2d78), in this case i want 0 printed.

The call:
C++:
print(petCheck(player.uid))

The function:
Lua:
function petCheck(player)
return 0
end

What am i missing?
 
there's other petCheck declared somewhere in your datapack. It loads later and overwrites your definition of petCheck.
 
Solution
Back
Top