Jump to content
UBot Underground

Table Help For Beginner Needed


Recommended Posts

Hello,

im new to UBot and need Help:

I have an CSV with Logins and Passwords, seperated by comma.

I want to load the First row and split them in Account and Password.

Then he should go to row 1, but he doesnt make that. Here is my Code:

loop(5) {
    create table from file("C:\\Users\\Peter\\Desktop\\Accounts.csv",&Accounts)
    set table cell(&Accounts,#row,0,"")
    set(#Login,$table cell(&Accounts,0,0),"Global")
    set(#Password,$table cell(&Accounts,0,1),"Global")
    increment(#row)
    alert("{#Login}{#Password}")
}

Thanks for your Help

Link to post
Share on other sites

You have quite a lot of "bugs" in your code.

 

1st: You are not initializing UBot variable #row, so it would most likely have a blank value.

2nd: You only need to load table once, therefore you shouldn't have it in a loop.

3rd: To pull login details you need to tell from which row, but you are always using row 0 (you have number zero hard-coded)

4th: You are always setting table column 0 to value "", meaning that #login variable would have the same value, "".

 

So here is the fixed code:

clear table(&Accounts)
create table from file("C:\\Users\\Peter\\Desktop\\Accounts.csv", &Accounts)
set(#row, 0, "Global")
loop(5) {
    set(#Login, $table cell(&Accounts, #row, 0), "Global")
    set(#Password, $table cell(&Accounts, #row, 1), "Global")
    alert("{#Login}{#Password}")
    increment(#row)
}

Link to post
Share on other sites

You should see couple of videos before you start coding they are very good for practice you have them in your Account Dashboard,its very useful for beginners such as yourself.

 

Best Regards!

Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...