file: 83.5..dat gives: len = -1
string.gsub(ip, ".", "_") gives: _____ for 83.5. etc.
-.-'
problem with dots in lua
Moderators: Forum moderators, developers
problem with dots in lua
wolFTeam.pl
Re: problem with dots in lua
this is correct: http://www.lua.org/manual/5.0/manual.html#pmLuk4ward wrote:file: 83.5..dat gives: len = -1
string.gsub(ip, ".", "_") gives: _____ for 83.5. etc.
-.-'
send lawyers, guns and money
Re: problem with dots in lua
thx, already tried with success: string.gsub(ip2, "(%p+)", "_")ReyalP wrote:this is correct: http://www.lua.org/manual/5.0/manual.html#pmLuk4ward wrote:file: 83.5..dat gives: len = -1
string.gsub(ip, ".", "_") gives: _____ for 83.5. etc.
-.-'
btw lua cant read filenames with dots inside?
wolFTeam.pl
Re: problem with dots in lua
Are you using lua IO or game FS ? If the latter, I'd guess it's a limit of the game filesystem. I'd be very surprised if lua cared.Luk4ward wrote: btw lua cant read filenames with dots inside?
send lawyers, guns and money
Re: problem with dots in lua
game fs. I see, thx for repliesReyalP wrote:Are you using lua IO or game FS ? If the latter, I'd guess it's a limit of the game filesystem. I'd be very surprised if lua cared.Luk4ward wrote: btw lua cant read filenames with dots inside?
wolFTeam.pl