strcmp // !strcmp
#1

Hello,
I looked at the codes of register and login sytem
and could not understand why they do this - with " ! " in the strcmp.

Код:
      case DLOGIN:
        {
           	    if (!response) return Kick(playerid);
           	    if(!strlen(inputtext)) return ShowPlayerDialog(playerid, DIALOG_LOGIN, DIALOG_STYLE_INPUT,"LOGIN","YOU DONT ENTER PASS","LOGIN","EXIT");
                if(!strcmp(inputtext,pInfo[playerid][pPassword],true))
                {
				SendClientMessage(playerid, -1, "YOU ARE LOGGED.");
				}
                else return ShowPlayerDialog(playerid, DIALOG_LOGIN, DIALOG_STYLE_INPUT,"LOGIN","YOU DONT LOGGED","LOGIN","EXIT");
                return 1;
            }
    }
    return 1;
}
I dont understand why he use in "!strcmp" im beginner scripted... i learn

Thanks to the helpers.
Reply


Messages In This Thread
strcmp // !strcmp - by elirand21 - 21.07.2014, 18:02
Re: strcmp // !strcmp - by Isolated - 21.07.2014, 18:03
Re: strcmp // !strcmp - by AroseKhanNiazi - 21.07.2014, 18:04
Re: strcmp // !strcmp - by Scaleta - 21.07.2014, 18:13
Re: strcmp // !strcmp - by Ihateyou - 21.07.2014, 18:15
Re: strcmp // !strcmp - by ikkentim - 21.07.2014, 18:30

Forum Jump:


Users browsing this thread: 1 Guest(s)