• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!
  • 2026 staff recruitment is open! Check it out and consider applying!

GESIOR ACC - PREMIUM POINTS - coins

jurass

New Member
Joined
Jul 7, 2015
Messages
98
Reaction score
3
Location
Poland
i want script add coins to accounts
orginal script gesior :
PHP:
function add_points($account, $number_of_points)
{
    if($account->isLoaded())
    {
        $account->set('premium_points', ($account->getCustomField('premium_points')+$number_of_points));
        $account->save();
        return true;
    }
    else
        return false;
}



i test it but dont work ;/


function add_points($account, $number_of_points)
{
    if($account->isLoaded())
    {
        Website::getDBHandle()->query('UPDATE `accounts` SET `coins` = `coins` + ' . $number_of_points . ' WHERE `account_id` = ' . $account->getID())
        return true;
    }
    else
        return false;
}

WHO CAN HELP ?
 
Last edited by a moderator:
Back
Top