376 posts
Location
[string "FindMe"]:23143: bad argument #1 to 'returnPos' (vector expected, got nil)
Posted 12 May 2014 - 09:50 PM
x = 1
while true do
x = x + 1
print(x)
sleep(1)
end
all it does is print "1", any fix?
8543 posts
Posted 12 May 2014 - 10:16 PM
Are you sure you don't mean something like:
x = 0
while true do
local x = x + 1
print(x)
sleep(1)
end
Because the code you have above should increment just fine.
1326 posts
Location
Error 404: Could not find.
Posted 12 May 2014 - 10:54 PM
I think its actually this:
local x = 0
while true do
x = x + 1
print(x)
sleep(1)
end
[Edit] Because don't you got to set a variable before you do the arithmetic part?
Edited on 12 May 2014 - 08:56 PM
8543 posts
Posted 13 May 2014 - 12:53 AM
Your code would work fine, as does his original code. The code I posted above is the only close variant I can think of that would exhibit the symptoms he describes.
1326 posts
Location
Error 404: Could not find.
Posted 13 May 2014 - 01:25 AM
Your code would work fine, as does his original code. The code I posted above is the only close variant I can think of that would exhibit the symptoms he describes.
oh ok