10.02.2012, 04:05
Quote:
But why does it has to be if(strcmp / if(!strcmp).
Can't it be something like pawn Код:
|
pawn Код:
#define IsSame(%0,%1) !strcmp(%0,%1,true,strlen(%1)) //Newbie def. ;)
//Example:
if(IsSame("SOMEBULLSHITINEVEREXPECTED","SOMEBULLSHITINEVEREXPECTED"))
{
print("ok!");
}
//will print: ok!
OR:
#define strsame !strcmp
if(strsame("ABC123", "ABC123", true, 6))
{
print("fdok!");
}