Hello There, Guest! › Register

MySubscriptions 2.2 released.
Looking for a custom plugin for your site? Ask here for a quote.

can't donate newpoints (error: wrong parameter)
#11

(03-01-2014, 06:58 AM)Jovan Wrote:
(11-16-2012, 05:21 AM)Pirata Nervo Wrote: Add (float) before the parameter one.

Can you tell me exactly where to put it? I don't know how to code php, sorry...
#12

Replace with this:
PHP Code:
round(floatval($mybb->input['amount']), (int)$mybb->settings['newpoints_main_decimal']); 
To download our paid plugins and receive support you must be a paid subscriber. Click here for more information.
#13

(03-01-2014, 11:21 PM)Pirata Nervo Wrote: Replace with this:
PHP Code:
round(floatval($mybb->input['amount']), (int)$mybb->settings['newpoints_main_decimal']); 

Works, thank you! Cool




Users browsing this thread: 1 Guest(s)