This commit is contained in:
Frank Skare
2019-06-27 06:59:34 +02:00
parent e7fd268927
commit 8899f4b772
5 changed files with 22 additions and 22 deletions

View File

@@ -46,11 +46,8 @@ namespace RatingAddon
void ClientMessage(string[] args)
{
if (args == null || args.Length != 2 || args[0] != "rate-file" ||
! int.TryParse(args[1], out int rating))
if (args.Length != 2 || args[0] != "rate-file" || ! int.TryParse(args[1], out int rating))
return;
Dic[mp.get_property_string("path")] = rating;
mp.commandv("show-text", $"Rating: {rating}");
}