【问题标题】:Skype issue with multiple params带有多个参数的 Skype 问题
【发布时间】: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。

【问题讨论】:

    标签: c# skype skype4com


    【解决方案1】:

    下面是一个简单的字符串,没有赋值给任何东西,

    "&port=&time=&method=";
    

    所以也许你可以使用类似的东西:

    Skyper.SendMessage(chat, Params[1] + "" + new WebClient().DownloadString("http://example.com/stresser/api.php?key=examplekey&host=&port=&time=&method=" + Params[1])");
    

    或使用双引号和括号结束符号正确更改该字符串

    【讨论】:

      猜你喜欢
      • 2015-11-09
      • 2022-08-19
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2019-12-04
      • 2011-06-14
      相关资源
      最近更新 更多