View previous topic :: View next topic |
Author |
Message |
redhot4321 Newbie cheater
Reputation: 0
Joined: 23 Aug 2007 Posts: 17 Location: on teh chair
|
Posted: Mon Sep 17, 2007 10:27 pm Post subject: c# question |
|
|
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 |
|
 |
appalsap Moderator
Reputation: 0
Joined: 27 Apr 2006 Posts: 6753 Location: Pakistan
|
Posted: Mon Sep 17, 2007 10:38 pm Post subject: Re: c# question |
|
|
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 |
|
 |
redhot4321 Newbie cheater
Reputation: 0
Joined: 23 Aug 2007 Posts: 17 Location: on teh chair
|
Posted: Mon Sep 17, 2007 10:51 pm Post subject: |
|
|
does that mean u know code but don't know shit or are u making fun? coz it's c#???
_________________
|
|
Back to top |
|
 |
ZenX Grandmaster Cheater Supreme
Reputation: 1
Joined: 26 May 2007 Posts: 1021 Location: ">>Pointer<<" : Address 00400560 Offset :1FE
|
Posted: Mon Sep 17, 2007 11:05 pm Post subject: |
|
|
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 |
|
 |
killersamurai Expert Cheater
Reputation: 0
Joined: 10 Sep 2007 Posts: 197 Location: Colorado
|
Posted: Mon Sep 17, 2007 11:24 pm Post subject: |
|
|
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 |
|
 |
ZenX Grandmaster Cheater Supreme
Reputation: 1
Joined: 26 May 2007 Posts: 1021 Location: ">>Pointer<<" : Address 00400560 Offset :1FE
|
Posted: Mon Sep 17, 2007 11:32 pm Post subject: |
|
|
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 |
|
 |
kittonkicker I post too much
Reputation: 1
Joined: 19 Apr 2006 Posts: 2171
|
Posted: Tue Sep 18, 2007 10:48 am Post subject: |
|
|
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  |
|
Back to top |
|
 |
atom0s Moderator
Reputation: 205
Joined: 25 Jan 2006 Posts: 8587 Location: 127.0.0.1
|
Posted: Tue Sep 18, 2007 11:45 am Post subject: |
|
|
Not sure what you are writing it in, but if you want to use API you can use CreateProcess.
|
|
Back to top |
|
 |
samuri25404 Grandmaster Cheater
Reputation: 7
Joined: 04 May 2007 Posts: 955 Location: Why do you care?
|
Posted: Tue Sep 18, 2007 3:12 pm Post subject: |
|
|
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 |
|
 |
|