1
2
3
4
5
6
7
8
9
2
3
4
5
6
7
8
9
addhook("say","say") function say(id,txt) local number --if its cant be changed to number such as "123a" or "asd154" 	number = 0 else 	number = tonumber(txt) end end
addhook("say","say") function say(id,txt) local number --if its cant be changed to number such as "123a" or "asd154" 	number = 0 else 	number = tonumber(txt) end end
if tonumber(txt)==nil then	-- It's cannot changed to number
addhook("say","say") function say(id,txt) 	local number=tonumber(txt) or 0	-- It gonna try to convert "txt" to number, and if it's not possible, it sets the value to 0 end