07.05.2010, 12:09
Solved
Originally Posted by ikarus❶❸❸❼
You can bump your topic if you don't get reply for 12 hours.
Show lines 67 and 68. |
Originally Posted by ■ RenisiL ■
Quote:
67 line: Pass = dini_Get(pFile, "Slaptazodis"); 68 line: if(WP_Hash(inputtext) != strval(pass)) |
new Pass = dini_Get(pFIle, "Slaptazodis");
if(dialogid == 2)
{
if(response == 1)
{
if(strlen(inputtext))
{
new pass[256];
new buf[145];
WP_Hash(buf, sizeof(buf), inputtext);
pass = dini_Get(pFile, "Slaptazodis");
if(!strcmp(pass, buf, false))
{
SendClientMessage(playerid, COLOR_RAUDONA, "[Klaida]: Blogas slaptaћodis !");
format(w,sizeof(w),"Tu esi uћsiregistraves\n\n\nPraљome prisijungti.",name);
ShowPlayerDialog(playerid,2,DIALOG_STYLE_INPUT,"Prisijungimo Meniu",w,"Prisijungti","Atљaukti");
}
else
{
PlayerPlaySound(playerid,1057,0.0,0.0,0.0);
PlayerData[playerid][Pinigai] = dini_Int(pFile, "Pinigai");
PlayerData[playerid][Exp] = dini_Int(pFile, "Exp");
PlayerData[playerid][Mirtys] = dini_Int(pFile, "Mirtys");
PlayerData[playerid][Nuzudymai] = dini_Int(pFile, "Nuzudymai");
PlayerData[playerid][Ispejimai] = dini_Int(pFile, "Ispejimai");
PlayerData[playerid][AdminLevel] = dini_Int(pFile, "AdminLevel");
PlayerData[playerid][ParkourWin] = dini_Int(pFile, "ParkourWin");
PlayerData[playerid][VIP] = dini_Int(pFile, "VIP");
PlayerData[playerid][Lygis] = dini_Int(pFile, "Lygis");
GivePlayerMoney(playerid, PlayerData[playerid][Pinigai]);
SetPlayerScore(playerid, PlayerData[playerid][Exp]);
PlayerData[playerid][Prisijungtas] = true;
SendClientMessage(playerid, COLOR_ZALIA, "SERVER INFO: Jus esate sekmingai prijungtas prie accounto, galite testi ћaidima.");
PlayerPlaySound(playerid,1057,0.0,0.0,0.0);
printf("%s (ID:%i) Prisijunge prie accounto.", name, playerid);
}
}
else
{
SendClientMessage(playerid, COLOR_RAUDONA, "[Klaida]: Jus neivedete slaptaћodћio.");
format(w,sizeof(w),"Tu esi uћsiregistraves \n\n\nPraљome prisijungti",name);
ShowPlayerDialog(playerid,2,DIALOG_STYLE_INPUT,"Prisijungimo Meniu",w,"Prisijungti","Atљaukti");
}
}
if(response == 0)
{
format(w,sizeof(w),"Tu esi uћsiregistraves \n\n\nPraљome prisijungti",name);
ShowPlayerDialog(playerid,2,DIALOG_STYLE_INPUT,"Prisijungimo Meniu",w,"Prisijungti","Atљaukti");
}
}