View previous topic :: View next topic |
Author |
Message |
Mortalkombatman2 Newbie cheater Reputation: 0
Joined: 24 Oct 2016 Posts: 14 Location: Gilbert, AZ
|
Posted: Tue Jan 03, 2017 6:04 am Post subject: [Resolved] I need help with a lua error I'm getting. :\ |
|
|
error: [string "OpenProcess("Win10Universal.exe")
..."]:126: <eof> expected near 'end'
121:
122: Win10ToolsProgressBar()
123: for Index = 1,100 do
124: Win10Tools.ProgressBar.Position = Index*1
125: end
126: end
127:
that's the script for it, I've already checked, and the form is called "Win10Tools" and the progress bar is named "ProgressBar"
I have no clue as to why I'm getting this error.
Vouch to Zanzer for noticing it and pointing it out to me.
_________________
will edit later
Last edited by Mortalkombatman2 on Wed Jan 04, 2017 9:36 am; edited 2 times in total |
|
Back to top |
|
|
Dark Byte Site Admin Reputation: 458
Joined: 09 May 2003 Posts: 25288 Location: The netherlands
|
Posted: Tue Jan 03, 2017 6:57 am Post subject: |
|
|
there is one end too many, or one if/for/then/... too little
_________________
Do not ask me about online cheats. I don't know any and wont help finding them.
Like my help? Join me on Patreon so i can keep helping |
|
Back to top |
|
|
Mortalkombatman2 Newbie cheater Reputation: 0
Joined: 24 Oct 2016 Posts: 14 Location: Gilbert, AZ
|
Posted: Tue Jan 03, 2017 3:05 pm Post subject: |
|
|
Dark Byte wrote: | there is one end too many, or one if/for/then/... too little |
I've looked at this already and I can't seem to find it either, especially since most of the scripting was taken from another project I made, but for a different version of the game. :\ The other thing also works perfectly.
_________________
will edit later |
|
Back to top |
|
|
ParkourPenguin I post too much Reputation: 140
Joined: 06 Jul 2014 Posts: 4289
|
Posted: Tue Jan 03, 2017 3:37 pm Post subject: |
|
|
There's not much anyone can tell without the full script. The problem isn't just in that little section of code.
Properly formatting your code will help you avoid these errors.
_________________
I don't know where I'm going, but I'll figure it out when I get there. |
|
Back to top |
|
|
Zanzer I post too much Reputation: 126
Joined: 09 Jun 2013 Posts: 3278
|
Posted: Tue Jan 03, 2017 6:14 pm Post subject: |
|
|
You forgot the keyword "function" in front of "Win10ToolsProgressBar()"
|
|
Back to top |
|
|
Mortalkombatman2 Newbie cheater Reputation: 0
Joined: 24 Oct 2016 Posts: 14 Location: Gilbert, AZ
|
Posted: Wed Jan 04, 2017 9:26 am Post subject: |
|
|
Zanzer wrote: | You forgot the keyword "function" in front of "Win10ToolsProgressBar()" |
OMGGGGGGGGGGGGG DAS WHY, I FEEL SO DUMB
thanks you're amazing, even tho it wasn't that hard of a thing to notice, i overlooked that. Then again i was making this at like 5am after going 3-4 days without sleep. (Idk why but i had randomly decided that i wanted to make that)
ParkourPenguin wrote: | There's not much anyone can tell without the full script. The problem isn't just in that little section of code.
Properly formatting your code will help you avoid these errors. |
the script was properly formatted, and i knew that it was within that section, since i checked over the source multiple times, and i didn't feel like posting all of the source here, since it's about 300-400ish lines, (a small little project i made in like 30 mins) but ya it was within that section. I simply forgot the word "function"
_________________
will edit later |
|
Back to top |
|
|
|