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 


delphi : whats wrong in this code ??

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

Joined: 02 Mar 2011
Posts: 20

PostPosted: Thu Feb 23, 2012 6:00 pm    Post subject: delphi : whats wrong in this code ?? Reply with quote

hi all masters

this is the code

Code:
var
  Form3: TForm3;
  x,y,p1,p2,p: extended;
implementation

{$R *.dfm}

procedure TForm3.Button1Click(Sender: TObject);
begin
x:= StrToInt64 (edit1.Text);
y:= StrToInt64 (edit2.Text);
   p2:= (5+x)*(x/5);
   p1:= (7+y)*(y/3);
   p:= (p1-p2)+x ;
   edit3.Text := inttostr(p:);


i got the error
" There is no overloaded version of 'IntToStr' that can be called with these arguments "

i declare all vars as extended coz i need to deal with big numbers
so what can i do to display (p) in edit3 ??
Back to top
View user's profile Send private message
Dark Byte
Site Admin
Reputation: 458

Joined: 09 May 2003
Posts: 25288
Location: The netherlands

PostPosted: Fri Feb 24, 2012 4:18 am    Post subject: Reply with quote

instead of extended use int64 (or uint64 if that delphi version you use supports it)

or use floattostr(p) instead, but because it is a float the results will not be very accurate when the value is really big

_________________
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
View user's profile Send private message MSN Messenger
Display posts from previous:   
Post new topic   Reply to topic    Cheat Engine Forum Index -> General programming 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