Jump to content




Browser Multiple Point Error

computer lua

  • You cannot reply to this topic
2 replies to this topic

#1 Ziriee

  • Members
  • 47 posts

Posted 07 September 2013 - 09:56 AM

Alright everyone. I need help with my file browser, but there seem to be bugs and I can't fix them because it says "Multiple points". I am too lazy to search for them, so if anybody could be crazy and read the whole code and find the bugs, I'd appreciate it alot.

Important stuff:
Spoiler

Pastebin url (better):
http://pastebin.com/qTMxfGGU
Full code:
Spoiler


#2 johnnic

  • Members
  • 50 posts
  • LocationSomewhere in ****** County, *******

Posted 07 September 2013 - 10:49 AM

What multiple points means is you had a variable that was like this:
someVariable=1.0.25
That should have been like:
someVariable="1.0.25"
That happens because lua tries to read the first example as a number, and it does not satisfy what it knows about numbers,

#3 Ziriee

  • Members
  • 47 posts

Posted 07 September 2013 - 10:58 AM

View Postjohnnic, on 07 September 2013 - 10:49 AM, said:

What multiple points means is you had a variable that was like this:
someVariable=1.0.25
That should have been like:
someVariable="1.0.25"
That happens because lua tries to read the first example as a number, and it does not satisfy what it knows about numbers,

Kinda fixed it, actually it was:
print(string.sub(files[i+scroll]), 1, string.len(files[i+scroll])-4 .."  ["..temp..sizes[tmp].."b]")
I added a space between the '4' and '..'

BTW, now I get "browser.exf:42: bad argument: number expected, got nil"
EDIT: Fixed it! It was a problem with brackets





2 user(s) are reading this topic

0 members, 2 guests, 0 anonymous users