So since the update there is this error for all arg:ReplyWith , dunno if it's going to be like the baseplayer:ChatMessage() or not, but at the moment here is a fix for your plugins
(thx Mughisi for showing me the GetMethod XD)
Code:function PLUGIN:OnServerInitialized() command.AddConsoleCommand("test.test", self.Object, "ccmdTest") ReplyWith = global.Arg._type:GetMethod("ReplyWith") end function PLUGIN:SendReply(source,msg) param = util.TableToArray( { msg } ) util.ConvertAndSetOnArray( param, 0, msg, System.String._type ) return ReplyWith:Invoke( source, param ) endfunction PLUGIN:ccmdTest(arg) self:SendReply(arg,"testing the reply") end
Arg:ReplyWith no longer works
Discussion in 'Rust Development' started by Reneb, Jan 24, 2015.