Problem with strcmp passwords. [rep++]
#1

pawn Код:
new UserPassword[24];
                    format(UserPassword,sizeof(UserPassword),"%s",dini_Get(playernamefile(playerid),"Password"));
                    print(inputtext);
                    print(UserPassword);

                    if(strcmp(inputtext,UserPassword,true,sizeof(UserPassword) ) )
                   
                        {

As you can see I've printed them both for debugging purposes, and they matched, so I can't see why it isn't returning as true :/
Reply
#2

if(!strcmp(
Reply
#3

Well shit son, that's not much of an answer.
Reply
#4

Quote:
Originally Posted by Hoborific
Посмотреть сообщение
As you can see I've printed them both for debugging purposes, and they matched, so I can't see why it isn't returning as true :/
strcmp returns 0 if the strings match.
Reply
#5

How weird. ohwell,
pawn Код:
if(!strcmp(
Fixed. lulz

Rep++
Reply
#6

well your script looks fine.
i dont see anything that should make prob.
anyway i suggest you to use y_ini insteand of dini...
Reply
#7

Quote:
Originally Posted by Hoborific
Посмотреть сообщение
How weird. ohwell,
pawn Код:
if(!strcmp(
Fixed. lulz

Rep++
That's what I said you noob! Now rep me. ^^
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)