MyBB-Plugins Forums

Full Version: can't donate newpoints (error: wrong parameter)
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2
I keep getting this error when trying to donate newpoints:

[Image: arimavts.png]

The plugin worked fine before. I don't know since when this error first appeared.
Please do some search, it's been posted numerous times.
(02-28-2014, 12:59 AM)Pirata Nervo Wrote: [ -> ]Please do some search, it's been posted numerous times.

I can't find it! All I see is hundreds of threads where you write "Please do some search, it's been posted numerous times."

1. http://forums.mybb-plugins.com/Thread-Pl...rror--4470
2. http://forums.mybb-plugins.com/Thread-Im...ints-Error
3. http://forums.mybb-plugins.com/Thread-pr...-newpoints

etc.
(02-28-2014, 02:07 AM)Pirata Nervo Wrote: [ -> ]E.g. http://forums.mybb-plugins.com/Thread-Ne...ber_format

This didn't solve the problem. Sad
Can you please post line of code that you changed?
(02-28-2014, 05:35 AM)Jovan Wrote: [ -> ]Can you please post line of code that you changed?

I didn't change any specific line of code. I actually just uploaded the clean NewPoints 1.9.9 folder and re-activated the plugin.

The lines in question currently look like this:

inc/plugins/newpoints.php line 447-452
PHP Code:
function newpoints_format_points($points)
{
    global 
$mybb;
    
    return 
$mybb->settings['newpoints_main_curprefix'].number_format((float)$pointsintval($mybb->settings['newpoints_main_decimal'])).$mybb->settings['newpoints_main_cursuffix'];


Or am I supposed to edit /newpoints.php as the error states? I'm a bit confused. Undecided
Please post line 225 of /newpoints.php
(02-28-2014, 11:57 PM)Pirata Nervo Wrote: [ -> ]Please post line 225 of /newpoints.php

PHP Code:
    $amount round(floatval($mybb->input['amount']), $mybb->settings['newpoints_main_decimal']); 
(11-16-2012, 05:21 AM)Pirata Nervo Wrote: [ -> ]Add (float) before the parameter one.
Pages: 1 2