SScanF not working

Ask for Help on Using the Language With Memory Hacking Software

Moderators: g3nuin3, SpeedWing, WhiteHat, mezzo

SScanF not working

Postby wildbat » Sat Aug 15, 2009 10:06 am

Code: Select all
   PrintF("Jump1.....");
   int iLength = 30;
   CHAR * pcTextX = Malloc( iLength );
   CHAR * pcTextY = Malloc( iLength );
   CHAR * pcTextZ = Malloc( iLength );
   GetWindowText( GetDlgItem(hDialog, EDIT_X), pcTextX, iLength );
   PrintF("Jump2.....");
   GetWindowText( GetDlgItem(hDialog, EDIT_Y), pcTextY, iLength );
   PrintF("Jump3.....");
   GetWindowText( GetDlgItem(hDialog, EDIT_Z), pcTextZ, iLength );
   
   float tmpx;
   float tmpy;
   float tmpz;
   
   PrintF("Jump4.....%s",pcTextX);
   SScanF(pcTextX,"%f",tmpx);
   PrintF("Jump5.....");
   SScanF(pcTextY,"%f",tmpy);
   PrintF("Jump6.....");
   SScanF(pcTextZ,"%f",tmpz);




Script Stop after Jump4.....23.2315

anyclue?
wildbat
I Have A Few Questions
 
Posts: 5
Joined: Sat May 16, 2009 1:43 pm

Postby L. Spiro » Sat Aug 15, 2009 11:44 am

SScanF(pcTextX,"%f", &tmpx);
SScanF(pcTextY,"%f", &tmpy);
SScanF(pcTextZ,"%f", &tmpz);


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


Return to Help

Who is online

Users browsing this forum: No registered users and 2 guests

cron