I want to make a conditional when a tag is 1 i want to set another to 1 and vice versa. Can anyone help?
i have tried SetTagBit("Tag",1); but this only sets the tag to one but not back down to 0.
i have tried SetTagBit("Tag",1); but this only sets the tag to one but not back down to 0.
Try this one.
int a;
a=GetTagBit("tag1");
if (a==1)
{
SetTagBit("tag2",1);
}
else
{
SetTagBit("tag2",0);
}
int a;
a=GetTagBit("tag1");
if (a==1)
{
SetTagBit("tag2",1);
}
else
{
SetTagBit("tag2",0);
}
Your use of this site is subject to the terms and conditions set forth under Legal Notices and the Privacy Policy. Please read those terms and conditions carefully. Subject to the rights expressly reserved to others under Legal Notices, the content of this site and the compilation thereof is © 1999-2010 Nerds in Control, LLC. All rights reserved.
Users of this site are benefiting from open source technologies, including PHP, MySQL and Apache. Be happy.
Fortune
The English have no respect for their language, and will not teach
their children to speak it.
-- G. B. Shaw







