if (dbcount("(*)", "users_points", "owner_id= '".$userdata['user_id']."'"))
{
$userpoints=dbarray(dbquery("SELECT * FROM ".$db_prefix."users_points WHERE owner_id='".$userdata[user_id]."'"));
$taskai = $userpoints[points_total];
}
else
{
$taskai ="0";
}
echo " Taškų $taskai";