【发布时间】:2014-11-15 02:38:18
【问题描述】:
我正在尝试制作 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。
【问题讨论】: