21.07.2014, 18:02
Hello,
I looked at the codes of register and login sytem
and could not understand why they do this - with " ! " in the strcmp.
I dont understand why he use in "!strcmp" im beginner scripted... i learn
Thanks to the helpers.
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; }
Thanks to the helpers.