![]() |
|
[C#] Switch Case command and argument? [!(command) (argument)] - Printable Version +- Hack Forums (https://hackforums.net) +-- Forum: Tech (https://hackforums.net/forumdisplay.php?fid=444) +--- Forum: Coding (https://hackforums.net/forumdisplay.php?fid=151) +---- Forum: Software Development (https://hackforums.net/forumdisplay.php?fid=118) +---- Thread: [C#] Switch Case command and argument? [!(command) (argument)] (/showthread.php?tid=4168363) Pages: Pages
1
2
|
* - OG Gangsta - Apr 13, 2014 (Apr 13, 2014 01:38 AM)frontenhack Wrote: WTF are you talking about?, Obviously I do know the language of C#. I have just never done anything related to this, so I have no knowledge of this portion of C#. (Apr 13, 2014 01:38 AM)frontenhack Wrote: WTF are you talking about?, Also, concat strings won't help here. * - frontenhack - Apr 13, 2014 (Apr 13, 2014 02:17 AM)OG Gangsta Wrote: Obviously I do know the language of C#. I have just never done anything related to this, so I have no knowledge of this portion of C#. How are you retriving commands? Not-So-Regards frontenhack * - OG Gangsta - Apr 13, 2014 (Apr 13, 2014 03:59 AM)frontenhack Wrote: How are you retriving commands? By parsing the stream that the IRC network sends to the client * - Dongahh - Apr 13, 2014 Like I said it was an example, just change "string str = '!ddos (ip)';" to "string str = '!ddos ' + ip;". Not hard at all if you knew the basics of C#. * - OG Gangsta - Apr 13, 2014 (Apr 13, 2014 04:05 AM)Dongahh Wrote: Like I said it was an example, just change "string str = '!ddos (ip)';" to "string str = '!ddos ' + ip;". I finally got it. You inspired me to look into splitting the text, and it works fine now. Thanks! * - Cornflower Blue இڿڰۣ-ڰۣ— - Apr 13, 2014 (Apr 13, 2014 04:17 AM)OG Gangsta Wrote: I finally got it. You inspired me to look into splitting the text, and it works fine now. Thanks! I posted it first! Where is my appreciation? Spoiler (Click to View) * - OG Gangsta - Apr 13, 2014 (Apr 13, 2014 04:37 AM)lhendrey4.5 Wrote: I posted it first! Where is my appreciation?Oh shit, you did! Thanks to you too man :) * - Yui Asuna - Apr 13, 2014 "I'm able to code an IRC botnet, use sockets & all, but I can't split strings !" Yeah. No. * - Geekie - Apr 13, 2014 (Apr 13, 2014 04:43 AM)OG Gangsta Wrote: Oh shit, you did! Thanks to you too man :) I believe I was the one that said the splitting part etc. etc... * - OG Gangsta - Apr 13, 2014 (Apr 13, 2014 01:50 PM)Yui Asuna Wrote: "I'm able to code an IRC botnet, use sockets & all, but I can't split strings !" I can split strings, I just did not think deeply about splitting strings until someone brought it up. Also, I have resolved the issue, so no further posts are needed. * - idb. - Apr 13, 2014 EDIT: Just realized I was responding to a C# thread. My fault! hahaha. |