30.04.2010, 08:48
PlayerInfo[playerid][Password] needs to be a string and
is correct, since passwords are strings, not integers (unless you can only have numbers for passwords on your server)
You can't do this
that will try and transform your string into a number and will always return 0, since you don't have any numbers in your password.
And since the same thing happens here
then both variables hold zero, which means every login will be correct.
Use strcmp for comparing strings
https://sampwiki.blast.hk/wiki/Strcmp
pawn Код:
PlayerInfo[playerid][Password] = dini_Get(pFile,"Password");
You can't do this
pawn Код:
new param = strval(params);
And since the same thing happens here
pawn Код:
PlayerInfo[playerid][Password] = dini_Int(pFile,"Password");
Use strcmp for comparing strings
https://sampwiki.blast.hk/wiki/Strcmp