Increase Variable

Support
  • Since the first day I've been working with BAS, I've had this problem that I can't solve, and I think it's very serious because I also update cookies the same way, and I'm afraid it's not working. I noticed the issue only happens when I use a double parse CSV string to update the database. I tried using increment variable and increment global variable, but it doesn't work, and I can't figure out what I'm missing. Honestly, I'm confused and don't even know if this is the correct procedure to import accounts from the database.

    Immagine 2024-12-24 125809.png

  • действие увеличить переменную , не глобальную это разные технологии

  • i testing with only variable but dont work

  • @spam @Roy-Mustang Even if I use ...INCREASE VARIABLE. the same problem persists, it doesn’t work! The problem only occurs when I use 2 parse CSVs. For example, if I only use parse account, it works fine.

  • I discovered that even if I insert a simple value like 2 instead of using increase variable in update record, it means the problem is with updating a record. It seems that when two parse CSVs are used, it doesn’t work.

  • Ok, I was using parse CSV (account and subreddit) saved in the database in two different tables. It seems that these settings don't work with update. I moved the subreddit to an external file, and it works now, but I would prefer to find a way to make the system work with the integrated database

  • @to-nice
    отпарсили через csv
    перевести в число переменную нужную
    увеличить ее

  • @Roy-Mustang Already tried that solution too. Twaego says my script doesn’t read the database schema, although it seems strange to me because in other situations it reads the database perfectly. Now, as a drastic solution, I’ll try to redo everything

  • I’m definitely missing something. I created a script that creates a new account. Once it’s created, I use "insert record" to save various data like login, password, cookies, and fingerprint into the database. However, if I continue the script and want to increment a variable (e.g., warm), it doesn’t work. I think I’m missing a command to recall the data of the same account, or am I wrong?

    My opinion is that the INSERT RECORD action does not save, or rather, any action to update the record cannot find the record. So, in between, there is a missing function to read the updated data from the database.

  • @to-nice said in Increase Variable:

    I’m definitely missing something. I created a script that creates a new account. Once it’s created, I use "insert record" to save various data like login, password, cookies, and fingerprint into the database. However, if I continue the script and want to increment a variable (e.g., warm), it doesn’t work. I think I’m missing a command to recall the data of the same account, or am I wrong?

    My opinion is that the INSERT RECORD action does not save, or rather, any action to update the record cannot find the record. So, in between, there is a missing function to read the updated data from the database.

    You would create a test script as short as possible that demonstrates the problem. Users would have offered you a solution to the problem a long time ago.

  • @Fox @Roy-Mustang This is a simple script. As mentioned, when I do "insert record," it's working, but in "update," it's not working. I also tried inserting VARIABLE VALUE [[RISPOSTE]] and name RISPOSTE.

    BASE.xml

  • @to-nice said in Increase Variable:

    @Fox @Roy-Mustang This is a simple script. As mentioned, when I do "insert record," it's working, but in "update," it's not working. I also tried inserting VARIABLE VALUE [[RISPOSTE]] and name RISPOSTE.

    BASE.xml

    There is no database in your script

    887eb7cd-c632-472b-bdc2-74e68a050da8-изображение.png

    It is also not very clear what exactly your script does and what you want to achieve. Are you probably expecting that increasing the variable will automatically increase this value in the database?

  • Immagine 2024-12-31 151845.png

    db is connect,
    Maybe I'm missing a step then. Do I need to call it back? Doesn't the script insert it automatically?

    That's just one page of the script; I didn't send everything. Did I make a mistake?

  • @to-nice It is not clear what you want to achieve, if you need to do just +1 to a variable I have already described it

    1. parse through csv
    2. translate the desired variable into a number
    3. increase it
    4. Overwrite the new variable in the database in the field where the increased variable is needed.
      It is important to overwrite the obtained variable in the base, there are overwrite actions in the base module.
  • @to-nice said in Increase Variable:

    db is connect,
    Maybe I'm missing a step then. Do I need to call it back? Doesn't the script insert it automatically?

    That's just one page of the script; I didn't send everything. Did I make a mistake?

    You may not have saved the script before submitting it to the forum.

  • @Roy-Mustang @Fox It's not like that. When I use parse CSV, it gives me a different record, meaning it retrieves a record from the database that is not the correct one. My simple process is this: I assign a fingerprint, create a new account, and save it with insert record in the database. From there, I need to increase the variable for that account. The strange thing is that if I take an existing record from the database, the variable increment procedure works. So, I'm missing something that retrieves that newly created account.

  • @Roy-Mustang @Fox
    Immagine 2025-01-17 012201.png

    I believe the problem is easy to solve. When I create a new account, I don’t have the account ID available, so if I want to parse, I don’t think there is a solution. The only solution that comes to mind is to assign an ID directly in the insert record. Right or wrong?