View previous topic :: View next topic |
Author |
Message |
That Bastard Newbie cheater Reputation: 0
Joined: 30 Jan 2015 Posts: 20
|
Posted: Fri Mar 27, 2015 11:58 am Post subject: How do you put string in a script..? |
|
|
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 |
|
|
hhhuut Grandmaster Cheater Reputation: 6
Joined: 08 Feb 2015 Posts: 607
|
Posted: Fri Mar 27, 2015 12:04 pm Post subject: |
|
|
You have to use the single apostrophes!
'Hello' <-- is a valid string
"Hello" <-- is NOT a valid string
|
|
Back to top |
|
|
That Bastard Newbie cheater Reputation: 0
Joined: 30 Jan 2015 Posts: 20
|
Posted: Fri Mar 27, 2015 12:29 pm Post subject: |
|
|
That's what I did.. q-q;
It's still telling me it can't be compiled.
|
|
Back to top |
|
|
Zanzer I post too much Reputation: 126
Joined: 09 Jun 2013 Posts: 3278
|
Posted: Fri Mar 27, 2015 1:16 pm Post subject: |
|
|
Maybe post the script you're trying to run?
|
|
Back to top |
|
|
That Bastard Newbie cheater Reputation: 0
Joined: 30 Jan 2015 Posts: 20
|
Posted: Fri Mar 27, 2015 1:58 pm Post subject: |
|
|
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...
Description: |
|
Filesize: |
451.18 KB |
Viewed: |
4475 Time(s) |
|
|
|
Back to top |
|
|
shakib187 Expert Cheater Reputation: 0
Joined: 24 May 2007 Posts: 215
|
Posted: Fri Mar 27, 2015 2:57 pm Post subject: |
|
|
Seems to work for me, maybe try (string)'that bastard'
|
|
Back to top |
|
|
atom0s Moderator Reputation: 199
Joined: 25 Jan 2006 Posts: 8518 Location: 127.0.0.1
|
Posted: Fri Mar 27, 2015 4:34 pm Post subject: |
|
|
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 |
|
|
Zanzer I post too much Reputation: 126
Joined: 09 Jun 2013 Posts: 3278
|
Posted: Fri Mar 27, 2015 4:38 pm Post subject: |
|
|
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 |
|
|
|