View Single Post
freak.exe_uLow
AlliedModders Donor
Join Date: Jul 2012
Location: Germany
Old 02-14-2020 , 12:00   Re: [Levels Ranks] Core v3.1.5 with 39 Modules + LR Webpanel - [01.16.2020]
Reply With Quote #109

Quote:
Originally Posted by TheFlyingApple View Post
I am trying to create my own custom plugin using level_ranks include files, but i have run into a problem.

The function "LR_ChangeClientValue" doesn't seem to work. I have the client ID as the first paramter and the rank value I want the specific client rank to be set to, but it doesn't execute the command and returns false.. What am I doing wrong?

PHP Code:
public int sellMenuHandler(Menu menuMenuAction actionint param1int param2)
{
    switch(
action)
    {
        case 
MenuAction_Select:
        {
            
char info[32];
            
menu.GetItem(param2infosizeof(info));
            if (
StrEqual(info"#accept"))
            {
                if (
LR_ChangeClientValue(param1200)) 
                {
                    
CPrintToChat(param1"{green}Your rank have been reset.");
                }
            }
        }
    }

Hey, I only give support for the plugin itself, changes must always be done by the user himself

Maybe you can ask that on the Level Ranks Discord: https://discord.gg/Jc58wjF
freak.exe_uLow is offline