Jump to content

July 2026 Staging

Pending 1.0.11

MrLiquid
MrLiquid

Posted

Homes - Failed to compile: 'BasePlayer' does not contain a definition for 'ClientRPCPlayer' and no accessible extension method 'ClientRPCPlayer' accepting a first argument of type 'BasePlayer' could be found (are you missing a using directive or an assembly reference?) | Line: 536, Pos: 20

Chris Dg.

Posted

Hey , thanks for info , I am on it. 

Much appreciated .

 

MancDad

Posted

Quick fix for me was to comment out player.ClientRPCPlayer(null, player, "OnDied");

See Below : 

        [ChatCommand("homes")]
        private void openmain(BasePlayer player)
        {   
            if (!permission.UserHasPermission(player.UserIDString, "homes.use") && config.perm)
            {
                player.ChatMessage("You don't have permission to use this command.");
                return;
            }      

            //player.ClientRPCPlayer(null, player, "OnDied");
            CuiHelper.DestroyUi(player, "homes_background");
            Stockscreen(player);
            Mainscreen(player);
            PopulateGrid(player);
            ShowCooldowns(player);            
        }

 

MrLiquid

Posted

NO!

Line 536 

player.ClientRPCPlayer(null, player, "OnDied");

REPLACE WITH

player.ClientRPC(RpcTarget.Player("OnDied", player));


Save and reload

About Us

Codefling is the largest marketplace for plugins, maps, tools, and more, making it easy for customers to discover new content and for creators to monetize their work.

Downloads
2.7m
Total downloads
Customers
11.5k
Customers served
Files Sold
164.6k
Total sales
Payments
3.6m
Processed total
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.