❗ [help] How do you fix the process....

Posts 1–6 of 6 · Page 1 of 1
❗ [help] How do you fix the process....
I am currently trying to fix my private server commands but i can't get how to fix this... pls inform me on how to fix this.

skype: razrblaeds

protected override bool Process(Player player, RealmTime time, string[] args)


it shows an error with this

internal class Staff : Command
{
public Staff() : base("Staff", 4)
{
}

protected override bool Process(Player player, RealmTime time, string[] args)
{
if (args.Length == 0)
{
foreach (var c in player.Manager.Clients.Values.Where(_ => _.Account.Rank > 4))
c.Player.SendInfo($"[$$] {player.Name} > {string.Join(" ", args)}");
}
}
}
Quote Originally Posted by Razrblaeds View Post
I am currently trying to fix my private server commands but i can't get how to fix this... pls inform me on how to fix this.

skype: razrblaeds

protected override bool Process(Player player, RealmTime time, string[] args)
screenshot of the error..? a couple errors can result from it, depending where you put it.
More info please, source, etc.

If you have problems with string interpolation use
Code:
string.Format()
If you get an error from
Code:
.Where(_ => _.Account.Rank > 4)
make sure to import "System.Linq".
Quote Originally Posted by BlackRayquaza View Post
More info please, source, etc.

If you have problems with string interpolation use
Code:
string.Format()
If you get an error from
Code:
.Where(_ => _.Account.Rank > 4)
make sure to import "System.Linq".
Its fabiano Source. and im just trying to have a command that only devs/staff could use so we can talk without talking to everyone else

Edit: Also your saying that where it says String[] that i should put string.Format()?
Quote Originally Posted by Razrblaeds View Post
Its fabiano Source. and im just trying to have a command that only devs/staff could use so we can talk without talking to everyone else

Edit: Also your saying that where it says String[] that i should put string.Format()?
https://msdn.microsoft.com/en-us/library/dn961160.aspx

Do you get any errors, or is the command not working properly?
Posts 1–6 of 6 · Page 1 of 1

Post a Reply

Similar Threads

Talk with us