01.03.2010, 12:04
Okay, I made this function..
Thank you all anyway.
forums spoil my indentation, lol.
pawn Код:
stock VarsContain(v1, c1, v2, c2, v3=-1, c3=-1, v4=-1, c4=-1)
{
if(v3>-1 && v4>-1)
{
if(v1==c1||v1==c2||v1==c3||v1==c4)
{
if(v2==c1||v2==c2||v2==c3||v2==c4)
{
if(v3==c1||v3==c2||v3==c3||v3==c4)
{
if(v4==c1||v4==c2||v4==c3||v4==c4)
{
return 1;
}
}
}
}
}
else if(v3>-1 && v4==-1)
{
if(v1==c1||v1==c2||v1==c3)
{
if(v2==c1||v2==c2||v2==c3)
{
if(v3==c1||v3==c2||v3==c3)
{
return 1;
}
}
}
}
else if(v3==-1 && v4==-1)
{
if(v1==c1||v1==c2)
{
if(v2==c1||v2==c2)
{
return 1;
}
}
}
return 0;
}
forums spoil my indentation, lol.