esteel 59 : 8
Luna 81 : 7
morfar 108 : 14
Xant 55 : 6
Stryku 48 : 25
k0jak 81 : -1
Needless to say I'm not that good ranked any more



Remember to check infrom time to time to see if you are challenged!
Moderators: Nexuiz Moderators, Moderators, Ladder Moderators
GreEn`mArine wrote:why don't you just contact other people in the ladder, via PM (or just challenge them) ?
cyan wrote:im always ready for a match
tChr wrote:cyan wrote:im always ready for a match
Hehe.. If i lose onther 9 point I wont be able to challenge anyone, including new players, so I have to be a lil more careful
Edit: Cyan I'v challenged everyone on this side of the atlantic now, so I guss you can just challenge me, since my challenges are open anywaysIf you wish. Might as just get it over with
GreEn`mArine wrote:tChr wrote:cyan wrote:im always ready for a match
Hehe.. If i lose onther 9 point I wont be able to challenge anyone, including new players, so I have to be a lil more careful
Edit: Cyan I'v challenged everyone on this side of the atlantic now, so I guss you can just challenge me, since my challenges are open anywaysIf you wish. Might as just get it over with
well, okay. I'll modify the "allow challenge" function that you will always be able to challenge people who have 1000 points and 0 matches
this is rather easy, because everything I have to do is to modify the code in the table that shows the new players .. instead of having the function decide whether to display the challenge link or not I'll simply always display it (if there are no open challenges of course and if you're logged in)
I can do this because the code that creates the table with the enw players is separated from the code creating the table with the players already having matches
function pointRangeOk ($session_id, $enemy_id)
{
//get to know whether the user who you want to challenge hasn't more than $pointrange points than you have
//function will return true if the range is okay
global $prefix;
global $conn;
global $pointrange;
$own_points = get_playerpoints($session_id);
$enemy_points = get_playerpoints($enemy_id);
$point_difference = $enemy_points-$own_points;
if ($point_difference <= $pointrange)
{
return true;
}
else {
return false;
}
}
function pointRangeOk ($session_id, $enemy_id)
{
//get to know whether the user who you want to challenge hasn't more than $pointrange points than you have
//function will return true if the range is okay
global $prefix;
global $conn;
global $pointrange;
$own_points = get_playerpoints($session_id);
$enemy_points = get_playerpoints($enemy_id);
$point_difference = $enemy_points-$own_points;
//allow also a bigger pointrange than $pointrange if the challenged players is new (0 matches, 1000 points)
$numbsql = "SELECT * FROM `".$prefix."matches` WHERE (challenger_userid='".$enemy_id."' OR challenged_userid='".$enemy_id."') AND match_report_accepted!=0 AND deleted='0'";
$numbquery = mysql_query($numbsql) or die(mysql_error());
$matchnumber = mysql_num_rows($numbquery);
if ($point_difference <= $pointrange || ($enemy_points == 1000 && $matchnumber == 0))
{
return true;
}
else {
return false;
}
}
GreEn`mArine wrote:okay, it's in now (I edited the post above).
old function:
- Code: Select all
function pointRangeOk ($session_id, $enemy_id)
{
//get to know whether the user who you want to challenge hasn't more than $pointrange points than you have
//function will return true if the range is okay
global $prefix;
global $conn;
global $pointrange;
$own_points = get_playerpoints($session_id);
$enemy_points = get_playerpoints($enemy_id);
$point_difference = $enemy_points-$own_points;
if ($point_difference <= $pointrange)
{
return true;
}
else {
return false;
}
}
function pointRangeOk ($session_id, $enemy_id) {
global £prefix, $conn, $pointrange;
if ((get_playerpoints($enemy_id) - get_playerpoints($session_id)) <= $pointrange) return true;
return false;
}
Return to Nexuiz Ladders - 1on1
Users browsing this forum: No registered users and 1 guest