[TLBB] Lổi Web Ai Biết Help Mình Với
Hello & Welcome to our community. Is this your first visit? Đăng Ký
Follow us on
Follow us on Facebook Follow us on Twitter Linked In Flickr Watch us on YouTube My Space Blogger
 
Kết quả 1 đến 8 của 8
  1. #1
    Thành Viên Tâm Huyết Superman's Avatar
    Ngày tham gia
    Sep 2006
    Bài viết
    781
    Thanks
    343
    Thanked 93 Times in 73 Posts

    Lổi Web Ai Biết Help Mình Với

    code BXH chuyen sinh mình chạy server 3 lổ thì nó hiện ra số lần chuyên bao nhieu lan
    mình đem qua bản 4 lổ thì nó ko hiện số lần sinh toàn đề số lần chuyền sinh =0 ,ai biết cấu hình sao cho nó hiện ra số lần chuyền sinh
    help mình với
    <?php
    if (file_exists("laivt_firewall.php"))
    include_once "laivt_firewall.php";
    include("cauhinh.php");
    require_once('../header.php');
    require_once('menu.php');
    ?>




    <!--Tra cuu-->
    <div class="clearthis">
    </div>
    </div>
    <div class="left_col_bt">


    </div>
    </div>


    <div id="right_col">
    <div class="right_col_top"></div>
    <div class="right_col_ct">
    <h2>Bản Xếp Hạng Cao Thủ</h2>
    <div class="right_acc_grey">
    <div class="right_acc_grey_top"></div>
    <div class="right_acc_grey_ct">


    <table border="0" cellpadding="1" cellspacing="1" width="95%">




    <?php
    $run=0;
    $ketqua=mysql_query("select str, spr, con, accname, ipr, dex from tlbbdb.t_char")
    or die (mysql_error());
    while($row=mysql_fetch_array($ketqua))
    {
    $sumprop[$run]= $row["str"]+$row["spr"]+$row["con"]+$row["ipr"]+$row["dex"];
    $charname[$run]=$row["accname"];
    $run=$run+1;
    }
    mysql_free_result($ketqua);


    for($i=0;$i<$run-1;$i++)
    {for($g=$i+1;$g<$run;$g++)
    {if($sumprop[$i]<$sumprop[$g])
    { //hoan doi chi so sumprop
    $bientam1=$sumprop[$i];
    $sumprop[$i]=$sumprop[$g];
    $sumprop[$g]=$bientam1;
    //hoan doi charname
    $bientam2=$charname[$i];
    $charname[$i]=$charname[$g];
    $charname[$g]=$bientam2;
    }}}


    ?>


    <!--END Notice-->
    <!--BEGIN Char infomation-->
    <table border="0" cellpadding="1" cellspacing="1" width="95%">



    <table border="0" cellpadding="1" cellspacing="1" width="95%">


    <div class="tab_napbac">
    <div class="tab_napbac1">
    Xếp hạng theo số lần chuyển sinh
    </div>




    <?php


    function solancs($mdata)
    {
    //$str = substr($mdata,1776,4);


    $str1 = hexdec(substr($mdata,1776,1));
    $str2 = hexdec(substr($mdata,1777,1));
    $str3 = hexdec(substr($mdata,1778,1));//$str3*4096
    $str4 = hexdec(substr($mdata,1779,1));
    $cs = $str4*256+$str1*16+$str2;
    return $cs;

    }


    //lien ket file ket noi voi mysql
    include_once('../include/config_mysql_win.php');
    include_once('../include/class2.php');





    //db linux
    $tlbb_web = new DB2($db_host_linux, $db_user_linux, $db_pwd_linux, $tlbbdb, $pconnect);

    //query xep hang
    /*
    $query = "
    select accname,charname,charguid,mdata,(str+spr+con+ipr+d ex+points)as tongcong
    from t_char
    order by tongcong desc
    limit 50
    ";
    $check = $tlbb_web->query($query);
    */

    //query check so lan cs cua nv
    $query = "
    select accname,charname,charguid,mdata
    from t_char
    ";
    $check = $tlbb_web->query($query);
    $tennv[0];
    $nv[0];
    $lancs[0];
    $i=0;
    while($result = $tlbb_web->fetch_array($check))
    {
    $mdata = $result['mdata'];
    $cs = solancs($mdata);
    $charguid = strtoupper(dechex($result['charguid']));
    $tennv[$i]=$result['charname'];
    $nv[$i]=$result['accname'];
    $lancs[$i]=$cs;
    $i=$i+1;
    /************************************************** **
    echo '
    <tr>

    <td>'.$result['accname'].'</td><td>'.$result['charname'].'</td><td>'.$charguid.'</td><td>'.$cs.'</td>
    </tr>
    ';
    ************************************************** ***/
    }

    for($z=0;$z<$i-1;$z++){
    for($g=$z+1;$g<$i;$g++){
    if($lancs[$z]<$lancs[$g]){

    $bt1=$lancs[$z];
    $lancs[$z]=$lancs[$g];
    $lancs[$g]=$bt1;

    $bt2=$tennv[$z];
    $tennv[$z]=$tennv[$g];
    $tennv[$g]=$bt2;
    }}}
    for($j=0;$j<100;$j++){
    echo'


    <div class="right_content_line">
    <div class="right_content_line1">
    '.$j.'</div>
    <div class="right_content_line2">
    '.$tennv[$j].'
    </div>

    <div class="right_content_line3">
    '.$lancs[$j].'
    </div>
    </div> <div class="right_dot"></div>

    '

    /******************/
    ;

    }
    //thong bao thanh cong

    ?>
    </tbody></table>

    <div class="right_col_bt"></div>


    <!--END Char infomation-->
    </tbody></table>


    <?php
    require_once('../footer.php');
    ?>
    Lần sửa cuối bởi Superman, ngày 25-11-12 lúc 09:02 PM.
    Lối Cũ Ta Về


  2. #2
    Thành Viên Tâm Huyết Superman's Avatar
    Ngày tham gia
    Sep 2006
    Bài viết
    781
    Thanks
    343
    Thanked 93 Times in 73 Posts

    Ðề: Lổi Web Ai Biết Help Mình Với

    uppppppppppppp 30 char pro help voi
    Lối Cũ Ta Về


  3. #3
    Thành Viên Tâm Huyết Superman's Avatar
    Ngày tham gia
    Sep 2006
    Bài viết
    781
    Thanks
    343
    Thanked 93 Times in 73 Posts

    Ðề: Lổi Web Ai Biết Help Mình Với

    uppppppppppppppp 30 char pro helo với
    Lối Cũ Ta Về


  4. #4
    Super Moderator huuduyen_05's Avatar
    Ngày tham gia
    May 2006
    Đang ở
    Unknow
    Bài viết
    2,924
    Thanks
    122
    Thanked 2,105 Times in 649 Posts

    Ðề: Lổi Web Ai Biết Help Mình Với

    Do bản bạn cấu hình ở script chuyển sinh và ở web không đúng thôi.
    Điều chỉnh mission data lại cho đúng là ok
    Khách viếng thăm hãy cùng huuduyen_05 xây dựng diễn đàn CLBGAMESVN vững mạnh nhé!

  5. #5
    Thành Viên Tâm Huyết Superman's Avatar
    Ngày tham gia
    Sep 2006
    Bài viết
    781
    Thanks
    343
    Thanked 93 Times in 73 Posts

    Ðề: Lổi Web Ai Biết Help Mình Với

    Trích dẫn Gửi bởi huuduyen_05 [Only registered and activated users can see links. ]
    Do bản bạn cấu hình ở script chuyển sinh và ở web không đúng thôi.
    Điều chỉnh mission data lại cho đúng là ok
    anh HD chỉ rõ giúp em với sửa chổ này phải ko anh
    cái mission data nó năm ở đâu trong web anh ,em tìm ko thấy
    PHP Code:
    function solancs($mdata)
    {
        
    //$str = substr($mdata,1776,4);


        
    $str1 hexdec(substr($mdata,1776,1));
        
    $str2 hexdec(substr($mdata,1777,1));
        
    $str3 hexdec(substr($mdata,1778,1));//$str3*4096
        
    $str4 hexdec(substr($mdata,1779,1));
        
    $cs $str4*256+$str1*16+$str2;
        return 
    $cs;
        

    Lần sửa cuối bởi Superman, ngày 27-11-12 lúc 11:56 AM.
    Lối Cũ Ta Về


  6. #6
    Thành Viên Tâm Huyết Superman's Avatar
    Ngày tham gia
    Sep 2006
    Bài viết
    781
    Thanks
    343
    Thanked 93 Times in 73 Posts

    Ðề: Lổi Web Ai Biết Help Mình Với

    uuuupppppppppppp 30 charrrrrrrrrr
    Lối Cũ Ta Về


  7. #7
    Thành Viên Tâm Huyết Superman's Avatar
    Ngày tham gia
    Sep 2006
    Bài viết
    781
    Thanks
    343
    Thanked 93 Times in 73 Posts

    Ðề: Lổi Web Ai Biết Help Mình Với

    Ang HD help em với ,mò máy bữa nay hẻm ra anh ơi
    Lối Cũ Ta Về


  8. #8
    Thành Viên Tâm Huyết Superman's Avatar
    Ngày tham gia
    Sep 2006
    Bài viết
    781
    Thanks
    343
    Thanked 93 Times in 73 Posts

    Ðề: Lổi Web Ai Biết Help Mình Với

    uppppppppppppppp 30 charrrrrrrrrrrr
    Lối Cũ Ta Về


 

 

Quyền viết bài

  • Bạn Không thể gửi Chủ đề mới
  • Bạn Không thể Gửi trả lời
  • Bạn Không thể Gửi file đính kèm
  • Bạn Không thể Sửa bài viết của mình
  •  
Múi giờ GMT +7. Bây giờ là 02:18 PM.
vBulletin®, Copyright ©2000-2011, Jelsoft Enterprises Ltd.
CLBGamesVN không chịu trách nhiệm về Luật Bản Quyền của các tài liệu, bài viết v.v...được đăng tải trên diễn đàn này.
Diễn đàn phát triển dưới sự đóng góp của tất cả thành viên. BQT chỉ là những người thành lập ra sân chơi, quản lý và duy trì về mặt kỹ thuật, nội dung khi hợp lệ.