OnOperationResponse problem

doolangames
edited July 2017 in Photon Server
Hi Guys, i have promblem when iam try to send some operation custom with PhotonNetwork.networkingPeer.OpCustom() like this
public void OpTestRequest()
    {
        var parameter = new Dictionary<byte, object>();
        parameter.Add((byte)100, "Hello World");
        PhotonNetwork.networkingPeer.OpCustom(1, parameter, true);
    }
but i have error like this
Operation failed: OperationResponse 1: ReturnCode: -2 (Unknown operation code). Parameters: {} Server: MasterServer

in "LoadbalancingPeer.cs" say
/// <summary>(-2) The operation you called is not implemented on the server (application) you connect to. Make sure you run the fitting applications.</summary>
        [Obsolete("Use InvalidOperation.")]
        public const int InvalidOperationCode = -2;
what solution i can do??

Best Answer

Answers