02.05.2009, 13:17
Quote:
Originally Posted by iMr
I know it could be done alot easier, but I can't use strcmp :S
|
pawn Код:
{
new pw[128];
pw = dini_Get(gPlayerfile[playerid], "Password");
if ( !strcmp(params, pw, true) ) // THIS LINE <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
{
gPlayerlogged[playerid] = 1;
SendClientMessage(playerid, 0x00FF00FF, "Login successful.");
return 1;
}
else
{
SendClientMessage(playerid, 0xFF0000FF, "Wrong password.");
return 0;
}
}