Cheat Engine Forum Index Cheat Engine
The Official Site of Cheat Engine
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 


[Resolved] I need help with a lua error I'm getting. :\

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> Cheat Engine Lua Scripting
View previous topic :: View next topic  
Author Message
Mortalkombatman2
Newbie cheater
Reputation: 0

Joined: 24 Oct 2016
Posts: 14
Location: Gilbert, AZ

PostPosted: Tue Jan 03, 2017 6:04 am    Post subject: [Resolved] I need help with a lua error I'm getting. :\ Reply with quote

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
View user's profile Send private message Send e-mail
Dark Byte
Site Admin
Reputation: 458

Joined: 09 May 2003
Posts: 25288
Location: The netherlands

PostPosted: Tue Jan 03, 2017 6:57 am    Post subject: Reply with quote

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
View user's profile Send private message MSN Messenger
Mortalkombatman2
Newbie cheater
Reputation: 0

Joined: 24 Oct 2016
Posts: 14
Location: Gilbert, AZ

PostPosted: Tue Jan 03, 2017 3:05 pm    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail
ParkourPenguin
I post too much
Reputation: 140

Joined: 06 Jul 2014
Posts: 4289

PostPosted: Tue Jan 03, 2017 3:37 pm    Post subject: Reply with quote

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
View user's profile Send private message
Zanzer
I post too much
Reputation: 126

Joined: 09 Jun 2013
Posts: 3278

PostPosted: Tue Jan 03, 2017 6:14 pm    Post subject: Reply with quote

You forgot the keyword "function" in front of "Win10ToolsProgressBar()"
Back to top
View user's profile Send private message
Mortalkombatman2
Newbie cheater
Reputation: 0

Joined: 24 Oct 2016
Posts: 14
Location: Gilbert, AZ

PostPosted: Wed Jan 04, 2017 9:26 am    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail
Display posts from previous:   
Post new topic   Reply to topic    Cheat Engine Forum Index -> Cheat Engine Lua Scripting All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group

CE Wiki   IRC (#CEF)   Twitter
Third party websites