error CS0411: The type arguments for method `BaseEntity.ClientRPCPlayer<T1,T2,T3,T4,T5>(Network.Connection, BasePlayer, string, T1, T2, T3, T4, T5)' cannot be inferred from the usage. Try specifying the type arguments explicitly
> player.ClientRPCPlayer(null, player, “StartLoading”, null, null, null, null, null);
Whats the fix?
ClientRPCPlayer errors, not compiling
Discussion in 'Rust Development' started by Rusty, Oct 27, 2017.
-
Wulf Community Admin
You'd need to find the replacement in Rust's DLLs that replaced the original.
-
Yep. Thanks!
Yep. I see that you have the fix, but i will fix myself.
Cheers. -
player.ClientRPCPlayer(null, player, “StartLoading”);
thats the fix -
Wulf Community Admin
-
-
What about
var obj2 = new Facepunch.ObjectList(send);
CommunityEntity.ServerInstance.ClientRPCEx(new Network.SendInfo {connection = player.net.connection}, null, "AddUI", obj2);
Whats the fix? -
Wulf Community Admin
-
So replace obj2 with what?
-
Wulf Community Admin
-
//var obj2 = new Facepunch.ObjectList(send);
CommunityEntity.ServerInstance.ClientRPCEx(new Network.SendInfo {connection = player.net.connection}, null, "AddUI", send);
?? -
Wulf Community Admin
-
Code:CommunityEntity.ServerInstance.ClientRPCEx(new Network.SendInfo() { connection = player.net.connection }, null, "AddUI", JsonConvert.SerializeObject(ui).Replace("{NEWLINE}", Environment.NewLine));
-
Thanks!