Broken "for" loops
#1
Hello,
I was making a plugin that had to run something ten times and came across what seems to be a bug:

Code:
    for i = 1, 10, 1 do
        Player:SendMessage("Pass " .. i)
    end

This should return
Pass 1
Pass 2
Pass 3
Pass 4
Pass 5
Pass 6
Pass 7
Pass 8
Pass 9
Pass 10
in chat.
But instead, i get this error:
'=' expected near 'for'
Reply
Thanks given by:


Messages In This Thread
Broken "for" loops - by mueller_minki - 02-19-2021, 06:19 PM
RE: Broken "for" loops - by NiLSPACE - 02-19-2021, 06:47 PM
RE: Broken "for" loops - by mueller_minki - 02-19-2021, 07:25 PM
RE: Broken "for" loops - by mueller_minki - 02-19-2021, 07:32 PM
RE: Broken "for" loops - by NiLSPACE - 02-19-2021, 07:43 PM
RE: Broken "for" loops - by NiLSPACE - 02-19-2021, 07:32 PM
RE: Broken "for" loops - by mueller_minki - 02-19-2021, 07:43 PM
RE: Broken "for" loops - by NiLSPACE - 02-19-2021, 07:45 PM
RE: Broken "for" loops - by mueller_minki - 02-19-2021, 08:01 PM



Users browsing this thread: 1 Guest(s)