Herro, looked all over google and couldn't find anything.
Basically what I am trying to get my script to do is when a client calls the menu, the client will send a message to the server which will then respond with an ent object.
The client script then gets the ent object and sets it to a var.
So I know the ent var gets set because I do a check to see if my server sends the ent back, if the client gets that ent and what ent it is.
This is my error:
[img]https://i.gyazo.com/ba382578ea6d093f82a11199ec9738c7.png[/img]
This is what prints in chat:
[img]https://i.gyazo.com/d772fec281def2b509e82c3d36de6fb1.png[/img]
This is my client code:
[img]https://i.gyazo.com/a756ab2b76e1589008e8ce93f102d114.png[/img]
This is my server code:
[img]https://i.gyazo.com/5a8b240d9983b6424c33b7876f772e75.png[/img]
Been trying to figure this out for a bit.
[IMG]http://i.imgur.com/byKUbne.png[/IMG]
The reason is that your code outside of callback starts executing way before you even sent the message, and so your [I]ent[/I] variable will hold nil as the default value.
[QUOTE=mijyuoon;51209620][IMG]http://i.imgur.com/byKUbne.png[/IMG]
The reason is that your code outside of callback starts executing way before you even sent the message, and so your [I]ent[/I] variable will hold nil as the default value.[/QUOTE]
Alright, thanks
Sorry, you need to Log In to post a reply to this thread.