Hi,
I need to pass in a variable with a cui button command but can't seem to get it to work. Can someone show me where i've gone wrong?
I need to pass in a variable with a cui button command but can't seem to get it to work. Can someone show me where i've gone wrong?
Button =
{
Command = "upgrade.speed" + furnaceID.ToString(),
Color = "0 0.8 0 0.5"
},
[ConsoleCommand("upgrade.speed")]
void UpgradeSpeed(ConsoleSystem.Arg args)
{
ulong furnaceid = System.Convert.ToUInt32(args.Args[0]);
Puts(furnaceid.ToString());
Puts("upgrade speed");
}