Jump to content

Recommended Posts

There's only a client log? No server log?

I think this is one of the possible culprits.

[00:19:36]: Warning: function Recipe in modmain is deprecated, please use AddRecipe	

They changed the way recipes are added to a server a few months ago, adding some protection and registration to the recipes (to keep consistency between server and clients, I suppose), which only happens in AddRecipe but not in Recipe.

40 minutes ago, Vlad Undying said:

Found the problem.
CUSTOM_RECIPETABS.SMTH- will succeed

CUSTOM_RECIPETABS[SMTH] - won't succeed

CUSTOM_RECIPETABS["SMTH"] - will succeed

 

If SMTH is a variable that contains a string, then your second case will succeed.

Otherwise if it's a literal, then it must be encapsulated to make it a string for accessing.  The dot notation is shorthand for it.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
  • Create New...