#Pairs Loops
7 messages · Page 1 of 1 (latest)
First, you dont need the "(" and ")" at first line
Scnd: What are you trying to do?
hey avg, can u say anything on my pv?
you don't really need pairs and ipairs
like
array = {
[1]="h",
[2]="e",
[3]="l",
[4]="l",
[5]="o"
}
for i,v in array do
print(i,v)
end
-- will print
1 h
2 e
3 l
4 l
5 o
Im teaching him, I got this