Chat bug after the update

After the update there just was in gmod ive got a chat bug when i type something it says " "0.00
and if i add " it give a 1.00 more…

Example:

I type hey and it shows: hey" "0.00

I type hey" and it shows: hey" "1.00

I type hey"" and it shows: hey" "2.00

And so on… Can anybody help with this? ive seen 3 so far with this, so its not just me :rolleyes:

I’ve heard another person say this, I’m going to go try myself, brb.

[editline]8th February 2011[/editline]

Mine doesn’t do it, I don’t know, what gamemode are you running?

It does on all my gamemodes just not sandbox, hmm…

EDIT: here is my hook if that would help finding the problem, i just dont see anything wrong in there and it worked before the update.

[lua]gm.hook = {};
gm.hook.stored = {};

– Add a hook without having to supply a unique ID.
function gm.hook.add(name, callback, tag)
local uniqueID = util.CRC( name…": "…tostring(callback) );

-- Add the hook with our generated unique ID.
hook.Add(name, uniqueID, callback)

-- Insert it into our stored table.
table.insert(gm.hook.stored, {name, uniqueID, tag})

-- Return our generated unique ID.
return uniqueID

end;

– Remove all hooks registered with this system.
function gm.hook.removeAll()
for k, v in pairs(gm.hook.stored) do
hook.Remove(v[1], v[2]);

	-- Remove the entry from our stored table.
	gm.hook.stored[k] = nil;
end;

end;

– Remove a hook with the specified unique ID.
function gm.hook.remove(uniqueID)
for k, v in pairs(gm.hook.stored) do
if (v[2] == uniqueID) then
hook.Remove(v[1], v[2]);

		-- Remove the entry from our stored table.
		gm.hook.stored[k] = nil;
		
		-- We're done here so break.
		break;
	end;
end;

end;

– Remove all hooks with the specified tag.
function gm.hook.removeTagged(tag)
for k, v in pairs(gm.hook.stored) do
if (v[3] == tag) then
hook.Remove(v[1], v[2]);

		-- Remove the entry from our stored table.
		gm.hook.stored[k] = nil;
	end;
end;

end;[/lua]

I’m not sure, I do all chat hooks by myself, it may be the gamemode.

Ive added the hook in my post above.

[lua]
function GM:PlayerSay(Player,Text,Public)
if string.find(Text,"/") == 1 then
return ChatCommand(Player,Text);
end
return Text;
end
[/lua]

That’s my server-side hook, doesn’t have your error.

Yes, but i can’t use that because i have a few chats/chat commands.
But its just so annoying because it worked before the update and i didnt change anything.

Apparently it’s something with string.gsub.

Im gonna try and delete it and see what happends.

EDIT: Ore is there anything i can try instead of string.gsub?

Probably string.sub, because it was broken.

Okay, i deleted it, and that fucked up my chatbox all the colors was messed up. isnt there something
i can use instead?

string.Replace

Yea that would work, but isnt that a slow and laggy function?
but i guess i could use that temp, but is there any chance that he will fix the string.gsub?

Btw. Thanks for helping me!.

[editline]9th February 2011[/editline]

Atleast i though it would. its not working ive added string.Replace instead but didnt work.

Same problem here, any way to just stop numbers from being shown in chat? I know thats a problem for some people but it’s a way to keep it clean

no idea what you guys are talking about. Maybe clean install?

It’s any gamemode that uses a custom chat system i think

No, just ones that use string.gsub a certain way, I don’t and mine works fine.

Well i really need it fixed too, i just got a friend to let me use his open aura key so faggots don’t whine at me for getting a leak and more faggots don’t whine at me for buying it and half of its fucked.

Okay so, string.gsub is returning 2 arguments, you just have to get the first one, your chat script is printing both.

I’m looking and the closest things i can find is string.sub, don’t think that has anything to do with it anyway.
Any idea where string.gsub would be?

EDIT: Oh god, i found alot of them

EDIT: Fixed, thanks drew.