Categories > Coding > C# >

NEED HELP GETTING RANDOM LINE FROM PASTEBIN

Posts: 19

Threads: 11

Joined: Aug, 2021

Reputation: 0

Posted

https://prnt.sc/1ttwhz1

 

ok so i need help with this cause im sped but what i want to know how to do is when i click the generate button one of the accounts in my pastebin will show inside the textbox. 

 

NOTE: please ignore the terrible UI.

 

EDIT: Solved

  • 0

I'm an idiot don't listen to anything I say

----------------------------------------------------

I make GTA Menus but failed at making lego cheats

Posts: 796

Threads: 54

Joined: Sep, 2021

Reputation: 21

Replied

this ui reminds me of magnius...

  • 0

dead inside

Posts: 19

Threads: 11

Joined: Aug, 2021

Reputation: 0

Replied

this ui reminds me of magnius...

it does

  • 0

I'm an idiot don't listen to anything I say

----------------------------------------------------

I make GTA Menus but failed at making lego cheats

MINISHXP

[REDACTED]

Posts: 813

Threads: 3

Joined: Jan, 2021

Reputation: 9

Replied

so i would split the string you got from the pastebin into a list by (in python for example, <str>.split('\n') but in C# you can do the same thing. then i would generate a random number from the range of 0 and the how long the list is,( [insert list here].Length() ) and then get the list object according to the random number generated, if you have basic C# knowledgebase you should be able to do this. also i think its a good idea to handle all of this on a server so people cant just log the request and go on the website and get your whole account database. (dont even store your account database on a pastebin lmao) so uhh yeah dm me for more info minishxp#9667

  • 0

Posts: 19

Threads: 11

Joined: Aug, 2021

Reputation: 0

Replied

so i would split the string you got from the pastebin into a list by (in python for example, <str>.split('\n') but in C# you can do the same thing. then i would generate a random number from the range of 0 and the how long the list is,( [insert list here].Length() ) and then get the list object according to the random number generated, if you have basic C# knowledgebase you should be able to do this. also i think its a good idea to handle all of this on a server so people cant just log the request and go on the website and get your whole account database. (dont even store your account database on a pastebin lmao) so uhh yeah dm me for more info minishxp#9667

You just blew my mind lol. Thanks for helping <3

  • 0

I'm an idiot don't listen to anything I say

----------------------------------------------------

I make GTA Menus but failed at making lego cheats

Users viewing this thread:

( Members: 0, Guests: 1, Total: 1 )