2014-11-15 8 views
-1

나는 C#을 스트레스 스크립트를 만들려고 노력하고 있지만, 그것은 나에게 오류를주고 유지 : 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="; 

    } 
} 
} 

는 스카이프의 사용자가 입력 한 것입니다 !stress ip, port, time, method에 입력 한 다음 API에 제출합니다.

답변

2

어떤 일에 할당되지 않은 단순한 문자열,됩니다 다음

"&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])"); 

또는 따옴표 제대로 해당 문자열을 변경하고 괄호 끝 기호