Facepunch Callback Error

So I’m making a multiplayer game on unity using the Netcode for gameobjects and Facepunch Transport. I’m fairly new to face punch so I’m just trying to learn the syntax etc.

Here I’ve tried to make a callback (as seen on tutorials) and the entire line is red + the error

Making callback

Here is the actual function (ignore the line under it lol)

And here is the error that I am receiving:

Is there any reason for this error to be happening? From the tutorials I’ve watched it seems like what I’ve written should work.

Yes. Looks like your function signatures don’t match.

Here’s how you can figure it out yourself from the above error message and the reference documentation.

The complete error message contains everything you need to know to fix the error yourself.

The important parts of the error message are:

  • the description of the error itself (google this; you are NEVER the first one!)
  • the file it occurred in (critical!)
  • the line number and character position (the two numbers in parentheses)
  • also possibly useful is the stack trace (all the lines of text in the lower console window)

Always start with the FIRST error in the console window, as sometimes that error causes or compounds some or all of the subsequent errors. Often the error will be immediately prior to the indicated line, so make sure to check there as well.

Look in the documentation. Every API you attempt to use is probably documented somewhere. Are you using it correctly? Are you spelling it correctly? Are you structuring the syntax correctly? Look for examples!

All of that information is in the actual error message and you must pay attention to it. Learn how to identify it instantly so you don’t have to stop your progress and fiddle around with the forum.