Quote:
Originally Posted by dice7
PlayerInfo[playerid][Password] needs to be a string and
pawn Код:
PlayerInfo[playerid][Password] = dini_Get(pFile,"Password");
is correct, since passwords are strings, not integers (unless you can only have numbers for passwords on your server)
You can't do this
pawn Код:
new param = strval(params);
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
pawn Код:
PlayerInfo[playerid][Password] = dini_Int(pFile,"Password");
then both variables hold zero, which means every login will be correct.
Use strcmp for comparing strings
https://sampwiki.blast.hk/wiki/Strcmp
|
thx...
lol i made a big mistake xD