2019-08-28, 10:54 AM
Today i noticed plugin that uses newpoints does not add / subtract points
for example if i want to subtract 1000 points from userid 1
i use to be able to use
however the above does not work anymore
i have to use the following now
anyone know what could be the problem?
i'm using
MyBB Version
1.8.21
PHP Version
7.2.11
SQL Engine
MySQLi 5.7.25
NewPoints (2.1.1)
for example if i want to subtract 1000 points from userid 1
i use to be able to use
newpoints_addpoints(1, -1000);
however the above does not work anymore
i have to use the following now
newpoints_addpoints(1, -1000 1, 1, false, true);
anyone know what could be the problem?
i'm using
MyBB Version
1.8.21
PHP Version
7.2.11
SQL Engine
MySQLi 5.7.25
NewPoints (2.1.1)