Categories > Coding > C# >
How To Put Pastebin Raw Text To My Monaco Using Textbox And Button?
Posted
I'm beginner!
Replied
Paste bin online script to lua button:
string script = new WebClient().DownloadString(pastebin/ghostbinrawlink); //Stores the string of the online script
api.SendLimitedLuaScript(script); //or SendLimitedLuaScript if you're using API V2, optionally Lua C
Maybe this is usefull?
Greetings,
STC Mods
Cancel
Post
Replied
The following code should do that:
string ScriptSource = "";
using (WebClient wc = new WebClient()){
ScriptSource = wc.DownloadString("http://www.pastebin.com/raw/1wez9");
}
Console.WriteLine(ScriptSource);
Cancel
Post
Proud creator of: WRD+
Users viewing this thread:
( Members: 0, Guests: 1, Total: 1 )
Cancel
Post