Combining args in C# -


i'm trying create command using game framework doesn't support use of quotes create arguments spaces. tried merge every separate argument after first make final string use can't figure out i'm doing wrong:

case "add":     client.sendtoclient(pluginutils.createnotification(client.objectid, 8453888, "logged console"));     string fullargs = "";     (int = 1; == args.length; i++ )     {         fullargs = fullargs + args[i];     }     console.writeline("[anti-spam] " + fullargs + " added filter list");     break; 

to clarify i'm using array index 1 begin because 0 part of command, 1 , beyond combine string.
i'm not getting errors , getting blank output, can please or suggest better way? appreciated :)

guessing should be:

for (int = 1; < args.length; i++ ) {   fullargs = fullargs + args[i]; } 

if args.length > 1, never populate fullargs


Comments

Popular posts from this blog

Spring Boot + JPA + Hibernate: Unable to locate persister -

go - Golang: panic: runtime error: invalid memory address or nil pointer dereference using bufio.Scanner -

c - double free or corruption (fasttop) -