10.02.2009, 19:15
if(!strlen(tmp) || (housestuff < 1 || housestuff > 6))
Well the (housestuff < 1 || housestuff > 6) will return 1 and if(1) is true I think. You have to put the brackets awaylike this:
Well the (housestuff < 1 || housestuff > 6) will return 1 and if(1) is true I think. You have to put the brackets awaylike this:
Код:
if(!strlen(tmp) || housestuff < 1 || housestuff > 6)