2 errors
#1

(286) : error 035: argument type mismatch (argument 1)
(321) : error 035: argument type mismatch (argument 1)
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase


2 Errors.

Lines:

pawn Код:
dini_IntSet(file, "Password", udb_hash(password));

if(strcmp(dini_Get(file, "Password"), udb_hash(password), true))
Reply
#2

argument 1 is wrong you need to change it (teling you what error says not how to fix it )
Reply
#3

Yes I know, but that seems correct.
Reply
#4

Did you try dini_Set and dini_Get?
Reply
#5

Show us the definition of "file"

[This forum requires that you wait 120 seconds between posts. Please try again in 29 seconds.]
vv stfu
Reply
#6

format(file, sizeof(file), "%s.ini", PlayerName);
if(dini_Exists(file))

I'm guessing it may be something to do with the udb_hash?
Reply
#7

shouldn't this be something like format(file, sizeof(file), "%s.ini", PlayerName(playerid)); ?
Reply
#8

Why dont you not try to use original file system?
Reply
#9

Quote:
Originally Posted by acade
Посмотреть сообщение
format(file, sizeof(file), "%s.ini", PlayerName);
if(dini_Exists(file))

I'm guessing it may be something to do with the udb_hash?
If your PlayerName is a stock function or just a function in general, you need to use PlayerName(playerid).
Reply
#10

udb_hash returns an integer. So you're actually trying to compare a string with an integer, which obviously doesn't work.

This should work:
pawn Код:
if(udb_hash(password) == dini_Int(file, "Password"))
{
    // They are the same
}
else
{
    // They are NOT the same
}
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)