Error while compiling GUIAnnouncements: Cannot implicitly convert type 'Facepunch.StringView[]' to 'string[]' | Line: 2013, Pos: 29
Error while compiling GUIAnnouncements: Cannot implicitly convert type 'Facepunch.StringView[]' to 'string[]' | Line: 2013, Pos: 29
Here to report the same issue.
Thanks.
Plugin needs an update thanks.
Error while compiling GUIAnnouncements: Cannot implicitly convert type 'Facepunch.StringView[]' to 'string[]' | Line: 2013, Pos: 29
:D please help!
The issue is clear. inputter.Args now returns Facepunch.StringView[] instead of string[] in a recent Rust update.
One-line change at line 2013. inputter.Args used to return string[] and Facepunch changed it to return Facepunch.StringView[] at some point in a recent staging/release update. The fix just calls .ToString() on each element via Linq's .Select() before converting back to an array.
While I am not the author, I have repaired the plugin temporarily until they have the chance to.
You can download the repaired version from: https://rustworldcdn.uk/GUIAnnouncements.cs
Many thanks for the fix @RustWorldCC