https://files.catbox.moe/jhrlo4.png
I get this error when i process commands with one argument because i added this
such as /time 10 but /time freeze 10 would workCode:float.TryParse(args[1], out secondnumber);
i tried
but that didn't work either.Code:if(args[1]!=null){ float.TryParse(args[1], out secondnumber); }
Solved Multiple argument command
Discussion in 'Rust Development' started by ツンデレラ, Apr 4, 2016.
-
/time 10 - 10 is args[0]
/ time freeze 10 - freeze is args[0], 10 is args[1] -
Code:if (args.Length ==2){ float.TryParse(args[1], out secondnumber); }