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 


How do you put string in a script..?

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

Joined: 30 Jan 2015
Posts: 20

PostPosted: Fri Mar 27, 2015 11:58 am    Post subject: How do you put string in a script..? Reply with quote

You just put apostrophes around it right? Well when I do that it tells me it can't be compiled.. Or something like that.

I'd put a picture of the script 'n the error but I honestly don't know hao2do that either. q-qqqqqqqqqqqqaoeiruhngkajgn
Back to top
View user's profile Send private message
hhhuut
Grandmaster Cheater
Reputation: 6

Joined: 08 Feb 2015
Posts: 607

PostPosted: Fri Mar 27, 2015 12:04 pm    Post subject: Reply with quote

You have to use the single apostrophes!

'Hello' <-- is a valid string
"Hello" <-- is NOT a valid string
Back to top
View user's profile Send private message
That Bastard
Newbie cheater
Reputation: 0

Joined: 30 Jan 2015
Posts: 20

PostPosted: Fri Mar 27, 2015 12:29 pm    Post subject: Reply with quote

That's what I did.. q-q;

It's still telling me it can't be compiled.
Back to top
View user's profile Send private message
Zanzer
I post too much
Reputation: 126

Joined: 09 Jun 2013
Posts: 3278

PostPosted: Fri Mar 27, 2015 1:16 pm    Post subject: Reply with quote

Maybe post the script you're trying to run?
Back to top
View user's profile Send private message
That Bastard
Newbie cheater
Reputation: 0

Joined: 30 Jan 2015
Posts: 20

PostPosted: Fri Mar 27, 2015 1:58 pm    Post subject: Reply with quote

Tell me hao plox!! :U..

Wait I'm just gonna try on my own.. q.q I'm guessing it's the add an attachment thing, I just noticed it...



bandicam 2015-03-27 12-34-15-185.jpg
 Description:
 Filesize:  451.18 KB
 Viewed:  4475 Time(s)

bandicam 2015-03-27 12-34-15-185.jpg


Back to top
View user's profile Send private message
shakib187
Expert Cheater
Reputation: 0

Joined: 24 May 2007
Posts: 215

PostPosted: Fri Mar 27, 2015 2:57 pm    Post subject: Reply with quote

Seems to work for me, maybe try (string)'that bastard'
Back to top
View user's profile Send private message
atom0s
Moderator
Reputation: 199

Joined: 25 Jan 2006
Posts: 8518
Location: 127.0.0.1

PostPosted: Fri Mar 27, 2015 4:34 pm    Post subject: Reply with quote

We do not support multiplayer / online game hacking on this forum as the game you showed in your screenshot is an online FPS.
_________________
- Retired.
Back to top
View user's profile Send private message Visit poster's website
Zanzer
I post too much
Reputation: 126

Joined: 09 Jun 2013
Posts: 3278

PostPosted: Fri Mar 27, 2015 4:38 pm    Post subject: Reply with quote

Comparing a string does not work like that in assembly.

It just so happens that CE converts your string into an array of bytes, 4 bytes in length.

You're getting an error because CE apparently accepts strings of length 8.

I think you may be able to get away with splitting your string up into chunks of 4 bytes each.

Code:
cmp [ebx+110],'That'
jne originalcode
cmp [ebx+114],' Bas'
jne originalcode
cmp [ebx+118],'tard'
jne originalcode
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 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