Team Spartan Cookies & Milk Forums
  • Issue Tracker
  • Donations
  • Search
  • Member List
  • Help

Register

Team Spartan Cookies & Milk Forums Garry's Mod Starfall v
« Previous 1 … 10 11 12 13 14 … 18 Next »
[Solved] Channels Bug
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Linear Mode
[Solved] Channels Bug
27-01-2016, 08:11 PM, (This post was last modified: 30-01-2016, 01:37 PM by esitee.)
#1
esitee Offline
you know
****
Posts: 60
Threads: 9
Joined: Dec 2014
Exclamation  [Solved] Channels Bug
So, it seems that 'channels.sendPrivate( Message )' is bugged. You can use it on the server environement, but not on the client.
Even though the documention says that it's useable on both.

Is that a starfall bug, or a failure in the documention?

For the code ( possibly that's wrong, but I don't think so ):

Serverside:

 
function sendPrivate( Message )
if Message ~= nil then
channels.sendPrivate( Message )
end
end

sendPrivate( "Hello World!" )

Clientside:


function sendPrivate( Message )
if Message ~= nil then
channels.sendPrivate( Message )
end
end

sendPrivate( "Hello World! From the Client!" )


The code used to get the Message on the other chip ( Serverside ):


function Incoming()
channels.listenPrivate( "Other", function( Chip, ... )
local Message = ...

Speak( Message, O )
end )
end

timer.create( "Incoming", 1, 0, Incoming )


I only got the message send serverside. I used chat.tell() so it's not because of some kind of spam protect. To be sure, I also run them seperately with 10 seconds between them. ( The Speak() function is basically just chat.tell() with some stuff added. ) The same happens, if I only use channels.sendPrivate() without a function.

Thanks, EisteeGolem.

[Image: ldkcVkq.jpg]
Find
Reply
« Next Oldest | Next Newest »


Messages In This Thread
[Solved] Channels Bug - by esitee - 27-01-2016, 08:11 PM
RE: Channels Bug - by SuperPlayer - 27-01-2016, 08:45 PM
RE: Channels Bug - by esitee - 28-01-2016, 02:24 PM
RE: Channels Bug - by Person8880 - 28-01-2016, 07:42 PM
RE: Channels Bug - by esitee - 29-01-2016, 10:16 AM

  • View a Printable Version
Forum Jump:


Users browsing this thread: 1 Guest(s)
Contact UsTeam Spartan Cookies & MilkReturn to TopLite (Archive) ModeMark all forums readRSS Syndication

Powered By MyBB, © 2002-2026 MyBB Group.