wierd compiling error.

Ask for Help on Using the Language With Memory Hacking Software

Moderators: g3nuin3, SpeedWing, WhiteHat, mezzo

wierd compiling error.

Postby andymac » Thu Jul 23, 2009 8:16 pm

This line will compile in the code editor, but not when I try to use it as a script lock:
Code: Select all
for ( i = 254; Abs(y) < 127 && Abs(x) < 127; i++;){
}


Why? and is there a code equivalent to this that I could use?
andymac
I Have A Few Questions
 
Posts: 4
Joined: Thu Jul 23, 2009 8:12 pm

Postby L. Spiro » Thu Jul 23, 2009 9:28 pm

The code you posted will not compile anywhere.

The following code compiles in both the Script Editor and in Script Locks:

Code: Select all
VOID Lock() {
   int i;
   int y;
   int x;
   for ( i = 254; Abs(y) < 127 && Abs(x) < 127; i++){
   }
}



L. Spiro
Our songs remind you of songs you’ve never heard.
User avatar
L. Spiro
L. Spiro
 
Posts: 3129
Joined: Mon Jul 17, 2006 10:14 pm
Location: Tokyo, Japan

Postby andymac » Fri Jul 24, 2009 3:21 pm

Sorry, that was just an excerpt from the code, not the whole thing. It turns out, the problem was in fact to do with the content inside the for loop, however commenting out the for loop meant it worked, so I assumed the problem was that line, but thanks anyway.
andymac
I Have A Few Questions
 
Posts: 4
Joined: Thu Jul 23, 2009 8:12 pm


Return to Help

Who is online

Users browsing this forum: No registered users and 0 guests

cron