Error I cannot understand.
#21
Posted 07 October 2012 - 03:54 AM
In this case though, you can do both without any problems (I think).
#22
Posted 07 October 2012 - 03:56 AM
Example of indentation:
local indentation = {}
function indentation.example()
local correct = true
if correct then
for counter = 1, 10 do
print('This is an example of "correct" indentation.')
end
end
end
indentation.example()
#23
Posted 07 October 2012 - 03:58 AM
luanub, on 07 October 2012 - 03:53 AM, said:
EDIT: Ninja'd
Watcher7, on 07 October 2012 - 03:56 AM, said:
Example of indentation:
local indentation = {}
function indentation.example()
local correct = true
if correct then
for counter = 1, 10 do
print('This is an example of "correct" indentation.')
end
end
end
indentation.example()
I know, my code looks horrible, but the reason I don't is cause I think it's wasting time.
#24
Posted 07 October 2012 - 04:01 AM
brett122798, on 07 October 2012 - 03:58 AM, said:
luanub, on 07 October 2012 - 03:53 AM, said:
EDIT: Ninja'd
Watcher7, on 07 October 2012 - 03:56 AM, said:
Example of indentation:
local indentation = {}
function indentation.example()
local correct = true
if correct then
for counter = 1, 10 do
print('This is an example of "correct" indentation.')
end
end
end
indentation.example()
I know, my code looks horrible, but the reason I don't is cause I think it's wasting time.
#26
Posted 07 October 2012 - 04:09 AM
Other things to check:
What do the contents of the file look like after the write?
You can also do something like this to check what the variable type is:
sType = type(newusername) print(sType)Do the same thing for username.
Also print them on the screen when they are being written or read so that you can see what it is doing. That should give you an idea as to what is going wrong.
#27
#28
Posted 07 October 2012 - 04:12 AM
brett122798, on 07 October 2012 - 04:05 AM, said:
#29
Posted 07 October 2012 - 04:20 AM
chiloxsan, on 07 October 2012 - 04:09 AM, said:
#30
Posted 07 October 2012 - 04:23 AM
luanub, on 07 October 2012 - 04:09 AM, said:
Other things to check:
What do the contents of the file look like after the write?
You can also do something like this to check what the variable type is:
sType = type(newusername) print(sType)Do the same thing for username.
Also print them on the screen when they are being written or read so that you can see what it is doing. That should give you an idea as to what is going wrong.
#31
Posted 07 October 2012 - 04:23 AM
Even though the var username was correct and was a string.
So I changed your :'s to .'s and it works like a charm. As I said before with fs you need .'s not :'s.... You're error will go away if you replace them.
EDIT:Changing to io works too since it uses :'s that you have in the code.
Edited by luanub, 07 October 2012 - 04:24 AM.
#32
Posted 07 October 2012 - 08:21 AM
I'm curious, what makes 1.3.2 a horrible update?
#33
Posted 07 October 2012 - 08:43 AM
Watcher7, on 07 October 2012 - 04:12 AM, said:
Actually when you paste from your clipboard in cc, it only pastes 1 line of your clipboard. Unless your program is one line, it's pretty much useless to copy and paste. Also since CTRL is the key to open the edit menu, it kinda stuffs up.
#34
Posted 07 October 2012 - 08:51 AM
Cloudy, on 07 October 2012 - 08:21 AM, said:
I'm curious, what makes 1.3.2 a horrible update?
All updates have had something bad ever since Beta 1.8(which is what I call "The Death Update"). 1.3 just had so many poor changes since it took like 3+ months to update, and very little good. About all changes that were made were bad because I say "If it's fixed, don't try to fix it and end up breaking it." Most additions in 1.3 I just plain didn't like except like the ender chest. Oh, and 1.4 is just as bad too. Sorry, I come from alpha(probably you too) when things were simple, yet more fun.
#35
Posted 07 October 2012 - 09:16 AM
#36
Posted 07 October 2012 - 09:47 AM
Cloudy, on 07 October 2012 - 09:16 AM, said:
Did I hear thunder?
1 user(s) are reading this topic
0 members, 1 guests, 0 anonymous users











