need a help iam new deplove games

some one send me source code to fix it but iam new to deplove it

i want some help here please

public void AddLog (string text)
    {
        if ([COLOR=#ff0000]Network.isClient[/COLOR] || [COLOR=#ff0000]Network.isServer[/COLOR]) {
            if (GetComponent<[COLOR=#ff0000]NetworkView[/COLOR]>())
                GetComponent<[COLOR=#ff0000]NetworkView[/COLOR]>().RPC ("SendChatMessage", [COLOR=#ff0000]RPCMode[/COLOR].[COLOR=#ff0000]All[/COLOR], text);
        }
   
    }

    [COLOR=#ff0000][RPC][/COLOR]

how i fix it please

teach me to fix this error

Where to start…

It looks like you’re using unet which is deprecated and therefore should not be used. Perhaps moving to Mirror networking would be best.

can you teach me and fix this source code using team view ??

It is worse than that. NetworkView is from the legacy networking based on Raknet. The one Unet replaced.

NetworkView is no longer a part of the most recent versions of Unity. It was deprecated several years ago. So long ago that the network solution which replaced it has also been deprecated a year ago as well.
https://docs.unity3d.com/ScriptReference/NetworkView.html

Since Unity’s next network API is not yet ready, the solution is to choose a 3rd party networking library and switch to that. How to actually code the fix depends entirely on which networking API you choose - see its documentation.

1 Like

I also wouldn’t be using team view for anything.

1 Like