This commit is contained in:
Frank Skare
2019-06-29 12:36:35 +02:00
parent 8e351193e1
commit 103ae81b8b
3 changed files with 18 additions and 9 deletions

View File

@@ -50,7 +50,7 @@ namespace RatingAddon
//handles keys defined in input.conf
void ClientMessage(string[] args)
{
if (args.Length != 2 || args[0] != "rate-file" || ! int.TryParse(args[1], out int rating))
if (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}");