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 


What is wrong with this code?

 
Post new topic   This topic is locked: you cannot edit posts or make replies.    Cheat Engine Forum Index -> General programming
View previous topic :: View next topic  
Author Message
NoManchesPuto
I post too much
Reputation: 0

Joined: 24 Jan 2009
Posts: 2820

PostPosted: Sun May 10, 2009 1:58 am    Post subject: What is wrong with this code? Reply with quote

Code:
if (CheckBox1.Checked = False) then
  SpamToggle.Checked := False;


I need my SpamToggle to be un-checked if my CheckBox1 is un-checked, can anyone help me please?
Back to top
View user's profile Send private message
92Garfield
I'm a spammer
Reputation: 57

Joined: 20 Dec 2007
Posts: 5871
Location: Banana Republic Germany

PostPosted: Sun May 10, 2009 2:05 am    Post subject: Reply with quote

language?

on VB its value
0 - not checked
1 - checked
2 - between both (ignore this)

so it would be

Code:
if checkbox1.value = 0 then
   spamtoggle.value = 0
end if


but obviously it's not VB Razz

try

if !checkbox1.checked then
spamtoggle.checked = checkbox1.checked

or NOT instead of ! depending on language i guess

you'r code seems to be broken..
if (CheckBox1.Checked = False) then
SpamToggle.Checked := False;

is there a language that uses THEN and semicolons?
also the : is wrong i guess

maybe you are using a language where you need to use == in conditions

_________________
Back to top
View user's profile Send private message
NoManchesPuto
I post too much
Reputation: 0

Joined: 24 Jan 2009
Posts: 2820

PostPosted: Sun May 10, 2009 2:07 am    Post subject: Reply with quote

Epic Cat Garfield wrote:
language?

on VB its value
0 - not checked
1 - checked
2 - between both (ignore this)

so it would be

Code:
if checkbox1.value = 0 then
   spamtoggle.value = 0
end if


but obviously it's not VB Razz

try

if !checkbox1.checked then
spamtoggle.checked = checkbox1.checked

or NOT instead of ! depending on language i guess

you'r code seems to be broken..
if (CheckBox1.Checked = False) then
SpamToggle.Checked := False;

is there a language that uses THEN and semicolons?
also the : is wrong i guess

maybe you are using a language where you need to use == in conditions


I am using Delphi 7


[color=red]EDIT: I GOT IT! YAY! Code I needed:
Code:
if checkbox1.checked = False then
   spamtoggle.checked := False;
Lol silly me!
Back to top
View user's profile Send private message
hcavolsdsadgadsg
I'm a spammer
Reputation: 26

Joined: 11 Jun 2007
Posts: 5801

PostPosted: Sun May 10, 2009 2:14 am    Post subject: Reply with quote

You already have a thread open, use that one.

Locked.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   This topic is locked: you cannot edit posts or make replies.    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