• 1 Vote(s) - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[Plugin] SampSharp - Write game modes in .NET Core
#6
(2021-02-10, 12:42 AM)Rique_FTW Wrote:
Code:
[Event]
public void OnPlayerConnect(Player player) {
? ? player.SendClientMessage($"? {player.Name} (ID: {player.Id}) connected.");
}
player.Id not found.

One more doubt. I can't use accentuation (I'm Brazilian).
Example:
Code:
Input code: Queda de conex?o
Output server: Queda de conex?o

@Rique_FTW
I see you are using the ECS (.Entity) and to get player id you need to use
PHP Code:
player.Entity.Handle 

As for accents and that sort of things add
PHP Code:
.UseEncodingCodePage("cp860"
to your gamemode builder (Program.cs) and specify the code page for portuguese language uses. I assume that is the cp860 but not sure

I recommend you to join discord server for faster help regarding S#
Away
  Reply


Messages In This Thread
RE: SampSharp - Write game modes in .NET Core - by Banditul - 2021-02-14, 11:26 AM

Forum Jump: