Quote:
Originally Posted by TheFlyingApple
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 menu, MenuAction action, int param1, int param2)
{
switch(action)
{
case MenuAction_Select:
{
char info[32];
menu.GetItem(param2, info, sizeof(info));
if (StrEqual(info, "#accept"))
{
if (LR_ChangeClientValue(param1, 200))
{
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