11.07.2014, 16:31
Hello.
Some NOT use bool variable which is quite a shame.
To fast they can afford to pass a variable to true or false state for different systems as an OOC channel on the roleplay server etc.
Let's get into the nitty-gritty, how is a bool variable?
It looks like this:
(In theory variables like that are global.)
You can boot to a command or server start that this variable is the state as true or false:
From it you can quickly make an order, here's a quick example very concrete:
As you can see it is very simple to use and it can be really useful.
++
Some NOT use bool variable which is quite a shame.
To fast they can afford to pass a variable to true or false state for different systems as an OOC channel on the roleplay server etc.
Let's get into the nitty-gritty, how is a bool variable?
It looks like this:
(In theory variables like that are global.)
pawn Code:
new bool:Easy;
pawn Code:
Easy = true;
Easy = false;
pawn Code:
if(strcmp(cmd, "/command", true) == 0)
{
if(Easy == false)
{
SendClientMessage(playerid, -1, "You just activate your system variable is set to true.");
Easy = true;
}
else
{
SendClientMessage(playerid, -1, "You just disable your system variable is set to false.");
Easy = false;
}
return 1;
}
++