ALERT!
Click here to register with a few steps and explore all our cool stuff we have to offer!
Home
Upgrade
Credits
Help
Search
Awards
Achievements
 1265

2 BOOLS FOR ONE OPTION

by EMILG0NZA - 06-12-2020 - 08:00 PM
#1
I Have some Problems Woth Variable I just wanna know if there its a way to active a bool and then select a option and the Bool Option start with the Option at the same time of the Option 

Some thing like this 

Bool = AddObjToPlayer

void OptionAttachToPlayer

So if Have The Bool AddObjToPlayer ON I dont wanna do Anything For Now

And Then If Press the OptionAttachToPlayer

I wanna execute the option and the Bool At the same Time i press ONLY the Option

BTW I already Try to figurit out But i have some variable problems

I try with the & and its not working for me

Thanks :)
Disc = 0xemiil
Reply
#2
(06-12-2020 - 08:00 PM)FeetForFree Wrote: I Have some Problems Woth Variable I just wanna know if there its a way to active a bool and then select a option and the Bool Option start with the Option at the same time of the Option 

Some thing like this 

Bool = AddObjToPlayer

void OptionAttachToPlayer

So if Have The Bool AddObjToPlayer ON I dont wanna do Anything For Now

And Then If Press the OptionAttachToPlayer

I wanna execute the option and the Bool At the same Time i press ONLY the Option

BTW I already Try to figurit out But i have some variable problems

I try with the & and its not working for me

Thanks :)
Did you mean a bool char?
Reply
#3
use a bool char and use bool yourvarname[2] = { false, false };
Reply
#4
(06-12-2020 - 09:59 PM)BModzMasterTM Wrote: use a bool char and use bool yourvarname[2] = { false, false };
And If I wanna like made that Option For Player Like it can be 
bool BoolVar[2][18] = {false , false };
to use the [iSelectedPlayer]

(06-12-2020 - 08:49 PM)Deuz_kcin_DX Wrote:
(06-12-2020 - 08:00 PM)FeetForFree Wrote: I Have some Problems Woth Variable I just wanna know if there its a way to active a bool and then select a option and the Bool Option start with the Option at the same time of the Option 

Some thing like this 

Bool = AddObjToPlayer

void OptionAttachToPlayer

So if Have The Bool AddObjToPlayer ON I dont wanna do Anything For Now

And Then If Press the OptionAttachToPlayer

I wanna execute the option and the Bool At the same Time i press ONLY the Option

BTW I already Try to figurit out But i have some variable problems

I try with the & and its not working for me

Thanks :)
Did you mean a bool char?
I will check out how to do it Thx
Disc = 0xemiil
Reply
#5
Code:
bool bool_name[10];

if(bool_name[0]){
//trigger bool 1
}
if(bool_name[1]){
//trigger bool 2
}
if(bool_name[2]){
//trigger bool 3
}
Reply
#6
(06-13-2020 - 02:43 AM)PhucedMODZ Wrote:
Code:
bool bool_name[10];

if(bool_name[0]){
//trigger bool 1
}
if(bool_name[1]){
//trigger bool 2
}
if(bool_name[2]){
//trigger bool 3
}
Really Nice Bro But i Mean like When i select a Option The active at that time 
Like I put on true the bool but the bool will not do anything Just wait and then if i press a option and that option have a kind of
if bool1 and option1 = Code1 i try with &
Disc = 0xemiil
Reply
#7
BOOL toggle;
INT functionstart;
BoolOption("Toggle", toggle); // toggle != toggle;
Option("start func"); // functionstart = 1;
If(toggle && functionstart == 1){executefunction();}
Reply
#8
(06-13-2020 - 10:00 PM)ReturnTrue Wrote: BOOL toggle;
INT functionstart;
BoolOption("Toggle", toggle); // toggle != toggle;
Option("start func"); // functionstart = 1;
If(toggle && functionstart == 1){executefunction();}
Niceeee briooo I think its that one
Disc = 0xemiil
Reply
#9
(06-13-2020 - 10:00 PM)ReturnTrue Wrote: BOOL toggle;
INT functionstart;
BoolOption("Toggle", toggle); // toggle != toggle;
Option("start func"); // functionstart = 1;
If(toggle && functionstart == 1){executefunction();}
But how my code will know that Functionstart = 1 its star func
Disc = 0xemiil
Reply

Users browsing: 1 Guest(s)