Problem with strcmp
#1

I did a login script, and i'm stuck at the check if the password that is in the .ini file, is equals to that the user enterd.

Код:
if(!strcmp(strval(tmp), tmp2, true) == 0){
                 SendClientMessage(playerid, COLOR_RED, "ERROR.");
}
tmp:

Код:
tmp = strtok(cmdtext, idx);
tmp2:

Код:
tmp2 = dini_Get(file, "Password");
Thank you for the help!
Reply
#2

pawn Код:
tmp = strtok(cmdtext, idx);
tmp2 = dini_Get(file, "Password");
if(!strcmp(tmp,tmp2,true))
{
//password correct
}
Reply
#3

Well thank you very much!
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)