| View previous topic :: View next topic |
| Author |
Message |
nwongfeiying Grandmaster Cheater
Reputation: 2
Joined: 25 Jun 2007 Posts: 695
|
Posted: Sat Feb 14, 2009 7:33 pm Post subject: C-Script Engine |
|
|
| You just introduced the engine to me, but there seems to be a problem with it. Whenever I try to use the if-else loop, it only executes the code in the if loop. Is it just me?
|
|
| Back to top |
|
 |
Dark Byte Site Admin
Reputation: 471
Joined: 09 May 2003 Posts: 25859 Location: The netherlands
|
Posted: Sat Feb 14, 2009 7:57 pm Post subject: |
|
|
check the condition of the if statement. (e.g. used a = instead of == tends to return true if the value isn't 0)
Also, perhaps some extra typecasting might be needed in case the c-scripter might have a problem figuring out what you meant and then just chooses true
_________________
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 |
|
 |
nwongfeiying Grandmaster Cheater
Reputation: 2
Joined: 25 Jun 2007 Posts: 695
|
Posted: Sat Feb 14, 2009 8:00 pm Post subject: |
|
|
I used a < operator, but I'll check again and report back to you.
Edit:
| Code: | if(0x02423FC4 > 50)
{
*(int *)0x02423FC4--;
} else {
*(int *)0x02423FC4 = 100;
} |
The value stayed the same regardless if it was greater than 50 or less. I used the "call address" it gave me.
|
|
| Back to top |
|
 |
Dark Byte Site Admin
Reputation: 471
Joined: 09 May 2003 Posts: 25859 Location: The netherlands
|
Posted: Sat Feb 14, 2009 8:10 pm Post subject: |
|
|
that is because 0x02423FC4 = 37896132
and yes, that actually IS bigger than 50
try
if(*(int *)0x02423FC4 > 50)
_________________
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 |
|
 |
nwongfeiying Grandmaster Cheater
Reputation: 2
Joined: 25 Jun 2007 Posts: 695
|
Posted: Sat Feb 14, 2009 8:20 pm Post subject: |
|
|
It stays the same value. It's as if the call wasn't even there. Any ideas to why (I'm trying to use it for step 1 of the CE Tutorial)?
Edit:
Random question, but do you have a Facebook?
|
|
| Back to top |
|
 |
Dark Byte Site Admin
Reputation: 471
Joined: 09 May 2003 Posts: 25859 Location: The netherlands
|
Posted: Sat Feb 14, 2009 8:48 pm Post subject: |
|
|
change your script to:
if (*(int *)0x02423FC4 > 50)
{
(*(int *)0x02423FC4)--;
} else {
*(int *)0x02423FC4 = 100;
}
it doesn't like pointer math without braces
also, looks like there is an initialization problem with the ce script parser if you just click execute(so has nothing to do with injecting into a process). To get by that open and close the c-script console
and no, I don't have a facebook
_________________
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 |
|
 |
nwongfeiying Grandmaster Cheater
Reputation: 2
Joined: 25 Jun 2007 Posts: 695
|
Posted: Sat Feb 14, 2009 11:43 pm Post subject: |
|
|
| The parenthesis worked. Thanks for the help. If only using WPM was as simple as this...
|
|
| Back to top |
|
 |
|