06.12.2012, 17:02
Is there such thing is a variable that uses a boolean
Rather then having to check if the value is 0 or 1 for no/yes?
Rather then having to check if the value is 0 or 1 for no/yes?
if(phone != 0)) // Doesn't have a phone
return 0;
{
else(phone !=1)) // does have a phone
abletocall();
phone(true);
abletocall();
{
else(return 0;
new
Toggle_Something[ MAX_PLAYERS ]
;
public OnPlayerConnect( playerid )
{
Toggle_Something[ playerid ] = 0;
return 1;
}
// on a command
Toggle_Something[ playerid ] = 1;
new
bool: Toggle_Something[ MAX_PLAYERS ]
;
public OnPlayerConnect( playerid )
{
Toggle_Something[ playerid ] = false;
return 1;
}
// on a command
Toggle_Something[ playerid ] = true;