Getting first value of the menu function and take points.
Hello there guys.
I have developed my own csgo ranks plugin, it's based by points. More points you have, then higher rank you get silver 1 to global elite. Now i added a feature to loose points, but when client goes to 0 or less there is spamming error in console that array index out of bounds, that's reasonable, because i didin't secure that. Anyway, i have administration panel written by myself that allows admin to take the points from players Code:
public Action CreateMenu_AddRemovePoints(int admin, int client, int iSelect) I don't know how can i get the first values of the menu in very simple way. For a current solution i did something like that, but still i want this 1st option to work Code:
if (iSelect == 1) |
Re: Getting first value of the menu function and take points.
If you ever plan on changing the point values on this menu, you may want to add MenuAction_DrawItem to the actions list and then use that action in your menu handler to check the items. Something like this:
PHP Code:
|
Re: Getting first value of the menu function and take points.
Quote:
My whole code for this is down below, i actually tried to rewrite for your method, but i got lots of errors, so i just keeped it my way. PHP Code:
|
Re: Getting first value of the menu function and take points.
I still don't get that, anyone any idea?
I tried to rewrite the whole menu code, but still errors or not working propery. |
All times are GMT -4. The time now is 20:07. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.