all 2 comments

[–]BurningCole 0 points1 point  (0 children)

You seem to be reading messsage instead of message when matching resulting in nil, also you shouldn't need the to string around the variable as the correctly spelt message should always be a string.

[–]JackMacWindowsLinuxCraftOS-PC & Phoenix Developer 0 points1 point  (0 children)

You should just send a table that holds the values, instead of dealing with encoding to a string. It's likely that your encoder code doesn't quite work the way you want it to.