GhettoTrucker
Member
OK, so using the new comands "disable" i made a quick little scipt thing that you can just paste onto the top of your script. I think i may have added a few extra "{}"'s and "return"'s. So do help me modify it! ...please.
How to use it:
Once run it will prompt you to set values for int(s). If you place the value of it at "1" it will dissable the said action. (ie. define int eat. 1. disable eat)
Have fun!
I keep getting an error that states
Or something of the sort. Any ideas?
Also is it possible to define variables with letters? (ie. "y" and "n")
Also i modified the code to
How to use it:
Once run it will prompt you to set values for int(s). If you place the value of it at "1" it will dissable the said action. (ie. define int eat. 1. disable eat)
Code:
void main(int eat, int use, int buy, int drink)
{
if(eat = 1)
{
cli_execute("disable eat");
return;
}
if(use = 1)
{
cli_execute("disable use");
return;
}
if(buy = 1)
cli_execute("disable buy");
return;
}
if(drink = 1)
{
cli_execute("disable drink");
return;
}
}
Have fun!
I keep getting an error that states
Code:
")" expected at line 3.
Or something of the sort. Any ideas?
Also is it possible to define variables with letters? (ie. "y" and "n")
Also i modified the code to
Code:
void main(int eat, int use, int buy, int drink)
{
if( eat => 0 );
{
cli_execute("disable eat");
}
if( use => 0 );
{
cli_execute("disable use");
}
if( buy => 1 );
cli_execute("disable buy");
}
if( drink => 1 );
{
cli_execute("disable drink");
return;
}
}