我正在尝试制作一个 C# Stress 脚本,但它一直给我错误:Error Only assignment, call, increment, decrement, await, and new object expressions can be used as a statement.
代码:
using System;
using System.Collections.Generic;
using System.Text;
using Skyper;
using SKYPE4COMLib;
using System.Net;
namespace Skyper.plugins
{
public static class Help
{
public static string Description
{
get
{
return "Stresser";
}
}
public static void Execute(string[] Params, int chat, string username)
{
Skyper.SendMessage(chat, Params[1] + "" + new WebClient().DownloadString("http://example.com/stresser/api.php?key=examplekey&host=" + Params[1]));"&port=&time=&method=";
}
}
}
这个脚本的工作原理是 Skype 中的用户将输入,!stress ip, port, time, method
然后将其提交给 API。