can someone help me whats wrong with that code?
error: [@**\gamemode\vgui\c_create.lua:195] unfinished capture
[lua]
local DChar = {}
DChar = {
"~",
"^",
"`",
"'",
"+",
"!",
"/",
"=",
"(",
")",
"|",
"[",
"]",
"$",
"<",
">",
"#",
"&",
"@",
"{",
"}",
";",
"*",
",",
".",
"-",
"_",
"?",
":"
}
Creation_Create.DoClick = function()
for _,v in pairs(DChar) do
if string.find(tostring(Creation_Name:GetValue()), v) then -- this is line 195
LocalPlayer():ChatPrint("Error")
end
end
LocalPlayer():ChatPrint(Creation_Name:GetValue())
Background:Close()
end
[/lua]
add ,1,true to string.find, so it won't match for patterns.
Sorry, you need to Log In to post a reply to this thread.