if(Variables.Fastbreak)
addChatMessage("Enabled")
else
addChatMessage("Disabled")
pseudocode.
So I am working on my next release for you guys but it will take a bit longer b/c of 1.3 coming out in 2weeks.
I am starting chat commands and i got the activators down with this
if(par1Str.equalsIgnoreCase("-Fastbreak"))
{
Variables.Fastbreak =!Variables.Fastbreak;
addChatMessage("\247c[BrightLight]\247fFastbreak Toggled!");
}
When i type it to deactivate it sais it again "Fastbreak Toggled!"
But i want it to say "Fastbreak Deactivated" when i type it again and it turns off
Does anyone know how to get it so it sais that when i retype it to turn it off?
if(Variables.Fastbreak)
addChatMessage("Enabled")
else
addChatMessage("Disabled")
pseudocode.
It's because you never defined what the variable is to deactivate it, and what it will say when it deactivates.
Useful links: MPGH Rules | Scammers Grave | Support Sections | How to use IM
Contact me: Visitor Message | Add me on IM | Private Message
Other links: Social Engineering Section | Announcements
MPGH Dark Theme
Super User since 02.02.2020
Global Moderator since 09.23.2017
Moderator since 09.01.2016
Minion+ since 07.22.2016
Marketplace Minion since 06.09.2016
Trove Minion since 06.06.2016
Middleman since 04.21.2016
Social Engineering Minion since 02.03.2016
News FO Freelancer From 11.08.2015 to 07.23.2016
News FO Head Editor From 08.23.2015 to 11.08.2015
News FO Head Editor From 07.19.2012 to 08.11.2014
MPGH News and News FO Founder
Programming Minion From Unknown to 04.23.2013
Minecraft Minion From 09.19.2012 to 04.23.2013
Member since 05.13.2012
@Nico i did that once and that means if i type anything other than -Fastbreak it will say fastbreak deactiavted