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 


'<name>' expected near '<eof>'

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> Cheat Engine Lua Scripting
View previous topic :: View next topic  
Author Message
LastExceed
Expert Cheater
Reputation: 1

Joined: 05 Nov 2014
Posts: 130

PostPosted: Wed Mar 18, 2015 6:16 pm    Post subject: '<name>' expected near '<eof>' Reply with quote

i am trying to sync addresses of 2 different processes, but when i try creating a shared memory block
Code:
allocateSharedMemory(testblock, 4096):

i get this error
Code:
Script Error:[string "allocateSharedMemory(testblock, 4096):..."]:2: '<name>' expected near '<eof>'


couldn't find anything about this in the CE forums, anyone know whats wrong?
Back to top
View user's profile Send private message
Dark Byte
Site Admin
Reputation: 470

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

PostPosted: Wed Mar 18, 2015 6:35 pm    Post subject: Reply with quote

is testblock a valid string?
also, why is there a :?
and it doesn't seem you're assigning the result to a variable

one example would be:
x=allocateSharedMemory("abc", 4096)
Back to top
View user's profile Send private message MSN Messenger
LastExceed
Expert Cheater
Reputation: 1

Joined: 05 Nov 2014
Posts: 130

PostPosted: Wed Mar 18, 2015 6:49 pm    Post subject: Reply with quote

Dark Byte wrote:
is testblock a valid string?
also, why is there a Confused
and it doesn't seem you're assigning the result to a variable

one example would be:
x=allocateSharedMemory("abc", 4096)


thanks, seems like it worked now.
I am trying to sync addresses of 2 different processes (as asked a few weeks ago /viewtopic.php?p=5579113#5579113)

Now that i have created this memory block, what do i have to do next?
Back to top
View user's profile Send private message
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