• SetNWString error?
    6 replies, posted
Hello guys. I'm having a serious problem on murder, for some reason players' names are "bystander". Searching on the code I found that this happens when bystander names could not be found. So here's server side code and client side code: On server console I'm receiving the bystander names. [CODE] function EntityMeta:GenerateBystanderName() local words = math.max(1, GAMEMODE.BystanderWords:GetInt()) local name = GAMEMODE:GenerateName(words) self:SetNWString("bystanderName", name) self.BystanderName = name print(self:GetNWString("bystanderName")) end [/CODE] In this part of the code chat.AddText is priting "recebi nome" only, without bystander name [CODE] function EntityMeta:GetBystanderName() local name = self:GetNWString("bystanderName") chat.AddText("recebi nome " .. self:GetNWString("bystanderName")) if !name || name == "" then return "Bystander" end return name end [/CODE] Anyone know how to fix It?
Update your server.
Running Murder on: version : 14.09.08/24 5928 secure, getting same problem.
[QUOTE=jakbu;47393110]Running Murder on: version : 14.09.08/24 5928 secure, getting same problem.[/QUOTE] [QUOTE=Robotboy655;47392813]Update your server.[/QUOTE]
Latest version is 15.25.03
Right, sorries, everything works on version : 14.09.08/24 5969 secure
[QUOTE=Robotboy655;47393176]Latest version is 15.25.03[/QUOTE] I had similar problems, but didn't see a new post on the changelog :P What was the update about?
Sorry, you need to Log In to post a reply to this thread.