Increase Variable

Support
  • @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?