Help!
#2

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
Reply


Messages In This Thread
Help! - by [cA]Unforseen - 30.04.2010, 08:30
Re: Help! - by dice7 - 30.04.2010, 08:48
Re: Help! - by [cA]Unforseen - 30.04.2010, 10:44

Forum Jump:


Users browsing this thread: 1 Guest(s)