Ulysses

General => Developers Corner => Topic started by: OpticPotatOS on June 20, 2016, 09:48:30 AM

Title: umsgRcv Not Working (I kinda assume)
Post by: OpticPotatOS on June 20, 2016, 09:48:30 AM
So, I'm using ULib.umsgSend and Rcv to send a string to some derma code, and then clientRPC to send the derma function back, but if anyone connects to the server, I get this error that contains my file and file directory, anyone know what's up with this?

Error:
Code: [Select]
[ERROR] addons/ulib/lua/ulib/client/cl_util.lua:40: attempt to index local 'um' (a nil value)
  1. umsgRcv - addons/ulib/lua/ulib/client/cl_util.lua:40
   2. unknown - addons/ulx/lua/ulx/modules/cl/cl_warn.lua:1
    3. include - [C]:-1
     4. unknown - addons/ulx/lua/ulx/cl_init.lua:12
      5. include - [C]:-1
       6. unknown - addons/ulx/lua/ulib/modules/ulx_init.lua:4
        7. include - [C]:-1
         8. unknown - addons/ulib/lua/ulib/cl_init.lua:23
          9. include - [C]:-1
           10. unknown - addons/ulib/lua/autorun/ulib_init.lua:5
Title: Re: umsgRcv Not Working (I kinda assume)
Post by: iViscosity on June 20, 2016, 09:57:26 AM
Why are you using umsg? You could just use clientRPC. I'm confused lol
Title: Re: umsgRcv Not Working (I kinda assume)
Post by: OpticPotatOS on June 20, 2016, 10:12:12 AM
Why are you using umsg? You could just use clientRPC. I'm confused lol
I thought clientRPC was only for functions, I'm trying to send a string from the server to the client.
Title: Re: umsgRcv Not Working (I kinda assume)
Post by: iViscosity on June 20, 2016, 10:12:58 AM
But aren't you trying to make derma?
Title: Re: umsgRcv Not Working (I kinda assume)
Post by: OpticPotatOS on June 20, 2016, 12:05:00 PM
Yeah, I send the reason to the client file, and then send the function back.
Title: Re: umsgRcv Not Working (I kinda assume)
Post by: iViscosity on June 20, 2016, 12:07:04 PM
Can I see the code? I'm so confused lol.
Title: Re: umsgRcv Not Working (I kinda assume)
Post by: OpticPotatOS on June 20, 2016, 12:30:20 PM
Never mind, I just realised that I can use clientRPC, sorry for looking like a complete idiot :P