This is a mobile optimized page that loads fast, if you want to load the real page, click this text.

Вопрос Проблема The given key 'GTANetworkAPI.Player' was not present in the dictionary

Kirillr_

Новый участник
Автор темы
6 Май 2021
3
0
1
Добрый день! Хотел бы узнать что это за ошибка и как ее исправть? Сборка RedAge 1.1


JavaScript:
using GTANetworkAPI;
using System;
using System.Collections.Generic;
using Quartzz.GUI;
using QuartzzSDK;

namespace Quartzz.Core
{
    class Nationality : Script
    {
        private static nLog RLog = new nLog("RUnationality");

        [RemoteEvent("RUchosen")]
        public static void RUschosen(Player player)
        {
                if (Main.Players[player].Licenses[11])
                {
                    Notify.Send(player, NotifyType.Success, NotifyPosition.BottomCenter, $"Добро пожаловать в Россию!", 10000);
                    return;
                }
                if (Main.Players[player].Licenses[10])
                {
                    return;
                }
                if (Main.Players[player].Licenses[12])
                {
                    return;
                }
                Main.Players[player].Licenses[11] = true;
                Notify.Send(player, NotifyType.Success, NotifyPosition.BottomCenter, $"Добро пожаловать в Россию!", 10000);
                Dashboard.sendStats(player);
        }

    }
}
 

Harland David Sanders

Куратор портала
Команда форума
Куратор портала
VIP
high coder
media
10 Сен 2020
3,063
2,455
219
Обратись к тому у кого взял сборку или разбирайся в коде сам.
А по поводу ошибки - она и есть ответ на вопрос.