Question

Спойлер

                new regex:rg_passwordcheck = regex_new("^[a-zA-Z0-9]{1,}$");
                if(regex_check(inputtext, rg_passwordcheck))
                {
                    new salt[11];
                    for(new i; i < 10; i++)
                    {
                        salt[i] = random(79) = 47;
                    }
                    salt[10] = 0;
                    SHA256_PassHash(inputtext, salt, player_info[playerid][PASSWORD], 67);
                    strmid(player_info[playerid][SALT], salt, 099);
                    printf("%s", player_info[playerid][SALT]);
                    SPD(playerid, DLG_REGEMAIL, DIALOG_STYLE_INPUT, "{ffd100}Ðåãèñòðàöèÿ {FFFFFF} • Ââîä Email",
                    "{FFFFFF}Ââåäèòå âàø íàñòîÿùèé Email àäðåñ\n\
                    Åñëè âû ïîòåðÿåòå äîñòóï ê àêêàóíòó, âû ñìîæåòå âîññòàíîâèòü åãî ÷åðåç Email\n\
                    Ââåäèòå åãî  â ïîëå íèæå è íàæìèòå êíîïêó \"Äàëåå\"",
                    "Äàëåå""");
                }
                else
                {
                    ShowRegistration(playerid);
                    return SCM(playerid, COLOR_RED, "[Îøèáêà] {FFFFFF}Ïàðîëü ìîæåò ñîñòîÿòü òîëüêî èç ÷èñåë è ëàòèíñêèõ ñèìâîëîâ ëþáîãî ðååñòðà.");
                }
                regex_delete(rg_passwordcheck);

 

Ошибки появились, помогите 

C:\Users\Admin\Desktop\сервер\gamemodes\new.pwn(316) : error 022: must be lvalue (non-constant)
C:\Users\Admin\Desktop\сервер\gamemodes\new.pwn(316) : warning 215: expression has no effect

Edited by John_Smit

Share this post


Link to post

2 answers to this question

  • 0

и как же понять, на какой строке выдаёт ошибку?

Share this post


Link to post
  • 0

@Holmo я уже решил, Спасибо. но у меня с бд теперь фигня ))

Share this post


Link to post

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0
  • Recently Browsing   0 members

    No registered users viewing this page.

  • Similar Content

    • z1pa228
      By z1pa228
      Какой плагин, за это отвечает и что нужно исправить ?


      [00:12:15] [debug] Run time error 19: "File or function is not found"
      [00:12:15] [debug]  IsVehicleOccupied
      [00:12:15] [debug]  SetPlayerGravity
      [00:12:15] [debug] Run time error 19: "File or function is not found"
      [00:12:15] [debug]  IsVehicleOccupied
      [00:12:15] [debug]  SetPlayerGravity
      [00:12:15] Script[gamemodes/new.amx]: Run time error 19: "File or function is not found"
      [00:12:15] Number of vehicle models: 0