I am making a points system. I made an array that holds the points needed to level up, but it does not work.
Here is the code:
    $level_stats = array();
    $level_stats[1] = 50;
    $level_stats[2] = 100;
    $level_stats[3] = 175;
    $level_stats[4] = 250;
    $level_stats[5] = 350;
    $level_stats[6] = 500;
    $level_stats[7] = 700;
    $level_stats[8] = 950;
    $level_stats[9] = 1250;
    $level_stats[10] = 2000;
    function getLevelRequirementForUser($name){ // function to get needed points to level up
            $level = tonumber(getLevelForUser($name)); // returns 1 (function not shown in code, it works though)
            return $level_stats[$level]; // returns nothing.
    }
 
     
     
    