View Single Post
stupid0303
Junior Member
Join Date: Sep 2012
Location: Taiwan
Old 05-02-2024 , 20:57   Re: Skill points become negative
Reply With Quote #7

Quote:
Originally Posted by Napoleon_be View Post
It would be more helpful if you could just explain correctly what you're looking for. I would say it looks like chinese but your code is literally that.

fysiks already gave u the answer more or less on the "question" u asked.

PHP Code:
if(g_skills[id] < 0
{
    
g_skills[id] = 0;
    
// client_printc()
}

else if (
g_skills[id] < 100
{
    
// click skill & close menu?



PHP Code:
if(g_skills[id] >= //Click the skill point amount
{
g_skills[id] -= get_cvar_num("each_health")

}
else
if(
g_skills[id] < //If it is lower than this value, it will show that there are insufficient skill points and the menu will not disappear. 
Thank u
According to your method, no errors occurred when converting files.
Then I modified it myself and it was successful.
stupid0303 is offline