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] change value String

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> General programming
View previous topic :: View next topic  
Author Message
davisvee
How do I cheat?
Reputation: 0

Joined: 01 Jan 2013
Posts: 2
Location: Digital World

PostPosted: Wed Jan 02, 2013 11:40 am    Post subject: [DELPHI] change value String Reply with quote

I have problem to write a delphi code for string type.

First, i have address from CE
server = $01536FEC;

and value type = string, like "Loki"

I want to change that string into others value with textbox in delphi.
help me please to write code in delphi.

I have been tried with this
PANSIchar(server) := 'FnC'
but error : left side cannot be assigned to <from delphi>

thanks for your answer
Back to top
View user's profile Send private message AIM Address Yahoo Messenger MSN Messenger
PR0GAM3
How do I cheat?
Reputation: 0

Joined: 15 Nov 2012
Posts: 3

PostPosted: Sat Jan 05, 2013 8:09 pm    Post subject: Reply with quote

ง่ายมาก

Code:

const
   server = $01536FEC;

var
   szTxt:PAnsiChar;
begin
//วิีธีเขียน(write)
   PAnsiChar(DWORD(server)) := "abc";

//วิีธีอ่าน(read)
   szTxt := PAnsiChar(DWORD(server));


Wink
Back to top
View user's profile Send private message
davisvee
How do I cheat?
Reputation: 0

Joined: 01 Jan 2013
Posts: 2
Location: Digital World

PostPosted: Sun Jan 06, 2013 12:00 am    Post subject: can not compile Reply with quote

im try your method with pansi and dword, and delphi still can not compile that code
here for the picture <sorry because i can not post URL from forum>
i293 photobucket com/albums/mm54/davisvee/a-2.jpg

const
iServer = $01536FEC;
PAnsiChar(DWORD(iserver)) := "abc"
error :
left side can not be assigned to
incompatible type : '_ABC' and 'PAnsiChar'
Back to top
View user's profile Send private message AIM Address Yahoo Messenger 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