Jump to content

SUPREME.

Membru
  • Posts

    3
  • Joined

  • Last visited

Profile Information

  • Level of knowledge
    Începător

SUPREME.'s Achievements

Newbie

Newbie (1/14)

  • First Post
  • Conversation Starter
  • Week One Done
  • One Month Later
  • One Year In

Recent Badges

0

Reputation

  1. Am rezolvat o parte din erori, acum ma lasa sa imi fac cont si se salveaza in baza de date, dar faza e ca imi spune parola incorecta. if(dialogid == DIALOG_LOGIN2 || dialogid == DIALOG_LOGIN3) { if(response) { if(strlen(inputtext)) { new tmppass[129]; SHA256_PassHash(inputtext, PlayerInfo[playerid][pSalt], tmppass, 64); if(!strcmp(tmppass, PlayerInfo[playerid][pKey])) //WP_Hash(tmppass, sizeof(tmppass), inputtext); OnPlayerLogin(playerid,tmppass); } else { new stringyy[320]; gPlayerLogTries[playerid] -= 1; if(gPlayerLogTries[playerid] == 1 || gPlayerLogTries[playerid] == 0) { format(stringyy,sizeof(stringyy),"Incorrect password. You have %d remaining login attempts left.", gPlayerLogTries[playerid]); SendClientMessage(playerid, COLOR_RED2, stringyy); } ShowPlayerDialog(playerid,DIALOG_LOGIN2,DIALOG_STYLE_PASSWORD,"SERVER: Login","Welcome to the GTA-SAMP RPG Server.\n\nPlease enter your password below!","Login","Cancel"); if(gPlayerLogTries[playerid] == -1) { new stringkick[256],loginname[30]; GetPlayerName(playerid, loginname, sizeof(loginname)); format(stringkick, sizeof(stringkick), "AdmWarn: {FFFFFF}%s has been kicked for entering the wrong password 2 times.",loginname); ABroadCast(COLOR_RED2,stringkick,1); SendClientMessage(playerid, COLOR_RED2, "You have used all available login attempts."); KickEx(playerid); } } } else return KickEx(playerid); }
  2. Salut, am facut sistemul de logare, respectiv de inregistrare sa se cripteze in sha256, faza e ca este o problema cand incerc sa imi fac cont. In mysql_error imi apare asta La on player register am asta La on player login am asta La on player connect am asta Si la " if(dialogid == DIALOG_LOGIN2 || dialogid == DIALOG_LOGIN3)" am asta
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. For more details you can also review our Terms of Use and Privacy Policy.