Home Upgrade Search Memberlist Extras Hacker Tools Award Goals Help Wiki Contact

.NET 

Making a Mod tool Console Applacation

hello im making a mod tool And i need help on how to corectly use the If Statement


Here is my code
Code
Module Module1

    Sub Main()
        Console.BackgroundColor = ConsoleColor.DarkRed
        Console.Title = ("Cod Mod Tool!")
        Console.WriteLine("Hello User!!")
        Console.WriteLine("Please Type something Here :")
        Console.ReadLine()
        Console.WriteLine("Here Is a list of your mod choices!")
        Console.WriteLine("God, NoClip, JumpHight, Super Speed")
        Console.WriteLine("Please Type What Mod You Want Activated here :")
        Console.ReadLine()
        Console.WriteLine("Made By AgarHero On Youtube!")
        Console.WriteLine("Please Sub To My Youtube Channel @ AgarHero")
        Console.ReadLine()

    End Sub

End Module
Unfortunately you don't even have an if statement.
Console.ReadLine() returns a value. So do something like;
String input = Console.ReadLine()
So you know memory manipulation but don't know how to use if statements?

I'm sceptical to say the least.
[Image: vjPWhyy.gif]
Low key feel like he posted this just so people can look at his youtube channel...
(Jan 22, 2016 12:46 PM)$lick Wrote:  So you know memory manipulation but don't know how to use if statements?

I'm sceptical to say the least.

if statements > memory manipulation.
(Jan 21, 2016 09:16 PM)Snowdrop14 Wrote:  hello im making a mod tool And i need help on how to corectly use the If Statement


Here is my code
Code
Module Module1

    Sub Main()
        Console.BackgroundColor = ConsoleColor.DarkRed
        Console.Title = ("Cod Mod Tool!")
        Console.WriteLine("Hello User!!")
        Console.WriteLine("Please Type something Here :")
        Console.ReadLine()
        Console.WriteLine("Here Is a list of your mod choices!")
        Console.WriteLine("God, NoClip, JumpHight, Super Speed")
        Console.WriteLine("Please Type What Mod You Want Activated here :")
        Console.ReadLine()
        Console.WriteLine("Made By AgarHero On Youtube!")
        Console.WriteLine("Please Sub To My Youtube Channel @ AgarHero")
        Console.ReadLine()

    End Sub

End Module


So far you've only gotten the aesthetics done, do the main parts.
STOP WASTING TIME! GET THE REAL METHODS NOW!
something like "if console.readline = "God" then
godmodeon()
elseif console.readline ="NoClip" then
noclip()
end if"
(Jan 23, 2016 04:58 AM)AimBRoT Wrote:  something like "if console.readline = "God" then
godmodeon()
elseif console.readline ="NoClip" then
noclip()
end if"

That wouldn't work. You have to store Console.Readline() in a string and then use that. because this way if you dont type 'God' Console.Readline() is called twice and that wouldn't work.
(Jan 23, 2016 06:49 AM)Ninja Wrote:  That wouldn't work. You have to store Console.Readline() in a string and then use that. because this way if you dont type 'God' Console.Readline() is called twice and that wouldn't work.


This was an example, i didn't want to spoonfeed him 🤝
Code
string command = console.ReadLine();
if( command.Contains(GodMode)
{
function.GodMode() //or whatever
}

But...
You don't know how IF statements work and you've made a hack? Wot


Possibly Related Threads...
Thread / Author Replies Views Last Post
[Python] by RoriksteadFeb 22, 2015 06:35 AM 13 431 Feb 22, 2015 06:35 AM
Last Post: Rorikstead
[.NET] by Fruit SnacksJan 22, 2015 07:18 AM 4 197 Jan 22, 2015 07:18 AM
Last Post: Fruit Snacks
[.NET] by ThrillerCloudJan 11, 2015 03:38 PM 8 465 Jan 11, 2015 03:38 PM
Last Post: Chill™