Open neated opened 6 years ago
You never included the message name when calling net.Send
On 24 Dec 2017 12:22, "neated" notifications@github.com wrote:
--Code in Server local ply = player.GetAll()[1] bnet.Send(ply, 10 , 20 , true , "example string")
-- Code in Client bnet.Receive("your message name" , function(ply, num1 , num2 , bool1 , string1) print("Message from server!") print("Data : ") print(ply, num1 , num2 , bool1 , string1) end)
it does not return the parameters it returns nothing
— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/codeisblue/bNet/issues/1, or mute the thread https://github.com/notifications/unsubscribe-auth/AIrbnjjVpfrsdbbO_gdT5uCXkHPnu8hSks5tDkH7gaJpZM4RL6V9 .
-- Code in Client bnet.Receive("Identifier" , function(ply, num1 , num2 , bool1 , string1) print("Message from server!") print("Data : ") print(ply, num1 , num2 , bool1 , string1) end)
--Code in Server local ply = player.GetAll()[1] bnet.Send("Identifier", ply, 10 , 20 , true , "example string")
like this ? is it possible to make an example please ?
There should be usage info in the readme. What you want to so is net.Send (player, theMessageName, ...)
On 24 Dec 2017 13:24, "neated" notifications@github.com wrote:
-- Code in Client bnet.Receive("Identifier" , function(ply, num1 , num2 , bool1 , string1) print("Message from server!") print("Data : ") print(ply, num1 , num2 , bool1 , string1) end)
--Code in Server local ply = player.GetAll()[1] bnet.Send("Identifier", ply, 10 , 20 , true , "example string")
like this ? is it possible to make an example please ?
— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/codeisblue/bNet/issues/1#issuecomment-353784132, or mute the thread https://github.com/notifications/unsubscribe-auth/AIrbnrvfCSfRlKAlXMTfP7y-qSOnbAo2ks5tDlCXgaJpZM4RL6V9 .
--Code in Server local ply = player.GetAll()[1] bnet.Send(ply, 10 , 20 , true , "example string")
-- Code in Client bnet.Receive("your message name" , function(ply, num1 , num2 , bool1 , string1) print("Message from server!") print("Data : ") print(ply, num1 , num2 , bool1 , string1) end)
it does not return the parameters it returns nothing