Something change that I need to change ?Code:11:34 AM [Debug] Adding plugin to compilation: ROMGUI 11:34 AM [Debug] Probably done preparing compilation: ROMGUI 11:34 AM [Debug] Done preparing compilation: ROMGUI 11:34 AM [Error] ROMGUI plugin failed to compile! 11:34 AM [Error] ROMGUI.cs(237,129): error CS1503: Argument `#4' cannot convert `string' expression to type `Facepunch.ObjectList?'![]()
Cannot convert `string' expression to type `Facepunch.ObjectList?'
Discussion in 'Rust Development' started by Upperking, Nov 3, 2015.
-
Wulf Community Admin
That was changed in Rust a few updates ago. You'd need to use a Facepunch.ObjectList instead of a string, else use Oxide's RustCui helper.
Oxide/RustCui.cs at master · OxideMod/Oxide · GitHub -
Or more simply said replace all:
Got a bit confused when I needed to update my old stuffs since I cant keep up with Rust developments :/Code:CommunityEntity.ServerInstance.ClientRPCEx(new Network.SendInfo() { connection = player.net.connection }, null, "AddUI", "Element"); with CommunityEntity.ServerInstance.ClientRPCEx(new Network.SendInfo { connection = player.net.connection }, null, "AddUI", new Facepunch.ObjectList("Element"));andCommunityEntity.ServerInstance.ClientRPCEx(new Network.SendInfo() { connection = player.net.connection }, null, "DestroyUI", "Element"); with CommunityEntity.ServerInstance.ClientRPCEx(new Network.SendInfo {connection = player.net.connection}, null, "DestroyUI", new Facepunch.ObjectList("Element"));
