This is utterly confusing....How can this be?
#9

Quote:
Originally Posted by Tanush123
Посмотреть сообщение
But why does it has to be if(strcmp / if(!strcmp).
Can't it be something like
pawn Код:
if(str,"Coke")
{
     //code
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!");
    }
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 4 Guest(s)