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 


c# question

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

Joined: 23 Aug 2007
Posts: 17
Location: on teh chair

PostPosted: Mon Sep 17, 2007 10:27 pm    Post subject: c# question Reply with quote

HEy guys...
i'm just starting to actually "learn" how to make aimbots, .dll's,ect

i have a question. if a c# code is like this
{
if
("example" =+ 123)
then
(startup = "egsample")
end
}
1: what is the command to start up a process on you're computer?
ect: processstart or sumthing like that
2: is the following command after the if command "then" or is it something else, i forgot lol so help plox
(wat does plox mean every1's saying it)

_________________
Back to top
View user's profile Send private message
appalsap
Moderator
Reputation: 0

Joined: 27 Apr 2006
Posts: 6753
Location: Pakistan

PostPosted: Mon Sep 17, 2007 10:38 pm    Post subject: Re: c# question Reply with quote

redhot4321 wrote:
Code:

i have a question. if a c# code is like this
{
if
("example" =+ 123)
then
(startup = "egsample")
end
}


oh my god what the fuck is this
Back to top
View user's profile Send private message
redhot4321
Newbie cheater
Reputation: 0

Joined: 23 Aug 2007
Posts: 17
Location: on teh chair

PostPosted: Mon Sep 17, 2007 10:51 pm    Post subject: Reply with quote

does that mean u know code but don't know shit or are u making fun? coz it's c#???
_________________
Back to top
View user's profile Send private message
ZenX
Grandmaster Cheater Supreme
Reputation: 1

Joined: 26 May 2007
Posts: 1021
Location: ">>Pointer<<" : Address 00400560 Offset :1FE

PostPosted: Mon Sep 17, 2007 11:05 pm    Post subject: Reply with quote

redhot4321 wrote:
does that mean u know code but don't know shit or are u making fun? coz it's c#???


I think what Appal means is your code doesn't make any god damn sense.

Note:That's what Appal Means, not me:P

_________________
CEF Moderator since 2007 ^_^
ZenX-Engine
Back to top
View user's profile Send private message Yahoo Messenger
killersamurai
Expert Cheater
Reputation: 0

Joined: 10 Sep 2007
Posts: 197
Location: Colorado

PostPosted: Mon Sep 17, 2007 11:24 pm    Post subject: Reply with quote

c# is like c/c++; not vb or delphi or any other language that does it like vb or delphi. There is no then or end.
Code:

How to do an if statement in c#

if (a == b)
{
// Do something
}
else
{
// Do something else
}


If you want to open a process, you have to use System.Diagnostics
Code:

using System.Diagnostics;

...
Process p = Process.Start("c:/WINDOWS/system32/calc.exe");
...
Back to top
View user's profile Send private message
ZenX
Grandmaster Cheater Supreme
Reputation: 1

Joined: 26 May 2007
Posts: 1021
Location: ">>Pointer<<" : Address 00400560 Offset :1FE

PostPosted: Mon Sep 17, 2007 11:32 pm    Post subject: Reply with quote

killersamurai wrote:
c# is like c/c++; not vb or delphi or any other language that does it like vb or delphi. There is no then or end.
Code:

How to do an if statement in c#

if (a == b)
{
// Do something
}
else
{
// Do something else
}


If you want to open a process, you have to use System.Diagnostics
Code:

using System.Diagnostics;

...
Process p = Process.Start("c:/WINDOWS/system32/calc.exe");
...


You are very correct.
I hate how there is no Then though:(

If (Button1.text = "Hello")
{//This is basically the Then segment of the code:)
/*Add J00 Code Here Nao Ploxxxx
I love Codes right here though
it gets pretty annoyingggggggg
*/
}

_________________
CEF Moderator since 2007 ^_^
ZenX-Engine
Back to top
View user's profile Send private message Yahoo Messenger
kittonkicker
I post too much
Reputation: 1

Joined: 19 Apr 2006
Posts: 2171

PostPosted: Tue Sep 18, 2007 10:48 am    Post subject: Reply with quote

It looks like a combination of c++ and delphi...

Umm in c++ I think what you're trying to do would be:

Code:
void Main()
{
   int example = 124;
   char[8] startup;
   if (example >= 123) {
       startup = "egsample";
   }
}

_________________
All gone Sad
Back to top
View user's profile Send private message
atom0s
Moderator
Reputation: 205

Joined: 25 Jan 2006
Posts: 8587
Location: 127.0.0.1

PostPosted: Tue Sep 18, 2007 11:45 am    Post subject: Reply with quote

Not sure what you are writing it in, but if you want to use API you can use CreateProcess.
Back to top
View user's profile Send private message Visit poster's website
samuri25404
Grandmaster Cheater
Reputation: 7

Joined: 04 May 2007
Posts: 955
Location: Why do you care?

PostPosted: Tue Sep 18, 2007 3:12 pm    Post subject: Reply with quote

ZenXChaos wrote:

If (Button1.text == "Hello")
{//This is basically the Then segment of the code:)
/*Add J00 Code Here Nao Ploxxxx
I love Codes right here though
it gets pretty annoyingggggggg
*/
}


You forgot the second '='. In C#, no function/operand has the same purpose.

The '=' (as in only one) is to assign values. The '==' (as in two) is for comparing values.

Code:

int a = 1 + 1; //You are assigning the value to a

if (a == 2) //You are comparing a to two, if a is equal to two, it will continue
{
MessageBox.Show("1 + 1 = 2");
}
Back to top
View user's profile Send private message
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