String.Gmatch null error. TTT Error placing weapons.

Weapon/ammo placement script found, attempting import.
Reading settings from script.
Time Error: [@lua\includes\extensions\string.lua:33] bad argument #1 to ‘string_gmatch’ <string expected, got nil>

[LUA]local totable = string.ToTable
local string_sub = string.sub
local string_gsub = string.gsub
local string_gmatch = string.gmatch
function string.Explode(separator, str, withpattern)
if (separator == “”) then return totable( str ) end

local ret = {}
local index,lastPosition = 1,1
 
-- Escape all magic characters in separator
if not withpattern then separator = string_gsub( separator, "[%-%^%$%(%)%%%.%[%]%*%+%-%?]", "%%%1" ) end
 
-- Find the parts
**for startPosition,endPosition in string_gmatch( str, "()" .. separator.."()" ) do**
    ret[index] = string_sub( str, lastPosition, startPosition-1)
    index = index + 1
     
    -- Keep track of the position
    lastPosition = endPosition
end[/LUA]

I assume you’re using version 27? Try 28.

http://www.zombiemaster.org/smf/index.php?topic=9303.80

THANK YOU SO MUCH. I LOVE YOU SO MUCH RIGHT NOW.