Ravens PHP Scripts: Forums
 

 

View next topic
View previous topic
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> v2.4 RN Issues
Author Message
rebelt
Worker
Worker



Joined: May 07, 2006
Posts: 172

PostPosted: Thu May 12, 2011 11:54 am Reply with quote

Anyone use this? I've just started trying to work out what goes where. Very Happy

I've created pool.php
Code:
$pool_title                    = _SPORTTITLE13;

$pool_schedule_setup           = array(_LHOME, _AWAY, _LSCORE, _WHEN, _WHERE, "Adm");
$pool_schedule_function        = array(SCHEDULE_TEAM1, SCHEDULE_TEAM2, SCHEDULE_SCORE_1_2,
                                         SCHEDULE_WHENISIT, SCHEDULE_ARENA, SCHEDULE_ADMIN_ICONS);
$pool_schedule_align           = array("right", "left", "center", "left", "left", "center");
$pool_schedule_wrap            = array("NO", "NO", "NO", "YES", "YES", "NO");
$pool_schedule_summary_setup   = array(_SCHEDULESUMM13_1);
$pool_standings_setup          = array(_STANDINGS13_1, _STANDINGS13_2,
                                         _STANDINGS13_3, _STANDINGS13_4,
                                         _STANDINGS13_5);
$pool_standings_calc           = array("col2+col3+col4", "", "", "",
                                         "", "", "(col5-col6)", "(col2*3)+col3");
$pool_standings_sort           = array(5, 4, 0);
$pool_standings_game           = array(1,2,3,0,0,0,0,0,0,5);
$pool_games_setup_name_0       = _GAMESETUPNAME13_1;
$pool_games_setup_0            = array(_GAMESETUP13_2, _GAMESETUP13_2,
                              "<img src=\"modules/League/images/yellow.gif\">",
                              "<img src=\"modules/League/images/red.gif\">");
$pool_games_setup_calc_0 = array("", "", "");
$pool_position                 = array(_POSITIONS13_1, "0", _POSITIONS13_2, "0");


And added this to the lang-english.php
Code:
define("_SPORTTITLE13", "Pool");

define("_SCHEDULESUMM13_1", "Games Won");
define("_STANDINGS13_1", "Play");
define("_STANDINGS13_2", "Win");
define("_STANDINGS13_3", "Loss");
define("_STANDINGS13_4", "FF");
define("_STANDINGS13_5", "Pts");
define("_GAMESETUPNAME13_1", "Players");
define("_GAMESETUP13_1", "Play");
define("_GAMESETUP13_2", "Frames");
define("_POSITIONS13_1", "Player");
define("_POSITIONS13_2", "Captain");


Can't seem to find where the calculations are worked out.

Format is best of 13, so if a team wins 7 - 6 they're awarded 2 points.

At the moment it seems to award 7 points to the team winning 6 frames and 6 points to the team winning 7 frames.

Players play up to 2 frames and I'm trying to display in top career and top League.
Player Played Won, calculated by frames won.

Tried to put everything above with visual examples on the site.

Could someone give me an assist please.

RN 2.40.01
Nuke_League 2.4
Only registered users can see links on this board! Get registered or login!
Thanks

_________________
I wish I knew what I was doing LOL 
View user's profile Send private message Visit poster's website
elnegro
Hangin' Around



Joined: Aug 25, 2006
Posts: 34
Location: Verona (ITALY)

PostPosted: Sat May 21, 2011 1:50 am Reply with quote

rebelt wrote:
Anyone use this? I've just started trying to work out what goes where. Very Happy

I've created pool.php
Code:


$pool_standings_setup          = array(_STANDINGS13_1, _STANDINGS13_2,
                                         _STANDINGS13_3, _STANDINGS13_4,
                                         _STANDINGS13_5);
$pool_standings_calc           = array("col2+col3+col4", "", "", "",
                                         "", "", "(col5-col6)", "(col2*3)+col3");
$pool_standings_sort           = array(5, 4, 0);

Can't seem to find where the calculations are worked out.

You must put correct values in $pool_standings_calc and first of all you need to have the same number of fields as in $pool_standings_setup so this could be correct:

$pool_standings_calc = array("col2+col3+col4", "", "", "", "(col5-col6)", "(col2*3)+col3");

then, to calc points as you describe you need to put also the number of frames in your standing table.

_________________
Bye, Luca 
View user's profile Send private message
Display posts from previous:       
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> v2.4 RN Issues

View next topic
View previous topic
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum


Powered by phpBB © 2001-2007 phpBB Group
All times are GMT - 6 Hours
 
Forums ©