//Remote Client
Communicate(procedure, arguments)
{
var/list/data = list()
data.Add(encryption)
data.Add(procedure)
data.Add(arguments)
world.Export("byond://[ip]:[port]?[list2params(data)]")
}
OOC(name, message)
{
Communicate("/world/proc/OOC", "[name], [message]")
}
//Game Server
world
Topic(T)
var/list/data = params2list(T)
if(data[1] != encryption)
{
return
}
else
{
call(text2path(data[2]))(data[3])
}
proc
OOC(name, message)
{
for(var/mob/M in world)
{
if(M.loggedIn)
{
mb_msgout("{R({x{YOOC{x{R){x [name]{R, '{x{Y[message]{x{R'{x", M)
}
}
}
Problem description:
Basically the 2nd argument isn't being transferred properly and is instead inside the first one for name is there any way to fix this?