R1KO / VIP-Core

GNU General Public License v3.0
50 stars 34 forks source link

VIPMenu.sp error - error 017: undefined symbol "TranslationPhraseExists" #76

Closed andrew2kRO closed 3 years ago

andrew2kRO commented 3 years ago

help me:D VipMenu.sp(240) : error 017: undefined symbol "TranslationPhraseExists"


                {
                    if(CanTestFeatures() && GetFeatureStatus(FeatureType_Native, "TranslationPhraseExists") == FeatureStatus_Available)
                    {
                240 if(!TranslationPhraseExists(szItemInfo))
                        {
                            FormatEx(SZF(szDisplay), "%s [%T]", szItemInfo, g_szToggleStatus[view_as<int>(Features_GetStatus(iClient, szItemInfo))], iClient);
                            return RedrawMenuItem(szDisplay);
                        }
                    }
                    FormatEx(SZF(szDisplay), "%T [%T]", szItemInfo, iClient, g_szToggleStatus[view_as<int>(Features_GetStatus(iClient, szItemInfo))], iClient);
                    return RedrawMenuItem(szDisplay);
                }```
R1KO commented 3 years ago

compile in sm 1.10 or download last version code https://github.com/R1KO/VIP-Core/blob/master/addons/sourcemod/scripting/vip/API.sp#L284

andrew2kRO commented 3 years ago

it is compiled with sm 1.10 and is the last version.

andrew2kRO commented 3 years ago

Done, i solved, i have some questions, you can give me some example of groups.ini?

R1KO commented 3 years ago
"VIP_GROUPS"
{
    "vip1"
    {
        "Skins" "all"
        "AutoBuy" "1"
    }

    "vip2"
    {
        // Параметры

    }
}