عرض مشاركة واحدة
احصائياتى

الردود
8

المشاهدات
11454
 
Biggiee

Biggiee is on a distinguished road

    غير متواجد

المشاركات
11

+التقييم
0.01

تاريخ التسجيل
Jun 2019

الاقامة

نظام التشغيل

رقم العضوية
291
2019-06-17, 06:25 AM
المشاركة 1 
#1  
افتراضي مشكلة في صفحة تسجيل سورس أليكس
السلام عليكم

عندي مشكلة في الصفحة اللي نزلها حازم للسورسات السي

الصفجة شغالة تمام بس فيها شوية لخبطة مش فاهمها

أولا الرانكات كلها بتيجي كدا



وصورة كمان من النافي كات



الفكرة كلها إن اللود بتاع البيانات مبيكملش وبقالي يومين بحاول أعملها مش عارف فياريت لو حد هنا يقدر يساعد يبقي شكرا جدا

ودي الملفات بتاعت الصفحة اهي اللي فيها المشكلة


ملف Rank المسؤل عن رانك الدونيشن


كود:
 <? include 'config.php'; ?>


          <?
$result = mysqli_query($conn,"SELECT * FROM accounts WHERE NOT EntityID = 0 ") or die(mysqli_error());
$i = '1';

while ($row = mysqli_fetch_array($result)) {
?>

<?php 

$reg1
=mysqli_query($conn,"insert into Player (uid) Values('".$row['EntityID']."')");

  
?>
<?php 
?>
 <table id="zctb" class="display table table-striped table-bordered table-hover text-center" cellspacing="0" width="100%">
                            <thead>
                                <tr>
                                    <th style="width: 120px;"><center>Rank</center></th>
                                    <th><center>Player Name</center></th>
                                    <th><center>Donate</center></th>
                                    <th><center>center</center></th>
                                </tr>
                            </thead>
                            <tbody>
                            <?
$result = mysqli_query($conn,"SELECT * FROM Player ORDER BY Do DESC") or die(mysqli_error());
$i = '1';

while ($row = mysqli_fetch_array($result)) {
    
                                        $classicon = noble($i,$row['DO']);

                                        $myFile = "$link_c/".$row['uid'].".ini";
                                        if (file_exists(''.$$myFile.''))
                                        {
                                        $lines = file($myFile);
                                        }
                                        list($name_a, $names) = explode("=", $lines[4]);
                                        list($Donation, $DonationNobility) = explode("=", $lines[63]);

                                        $rec = mysqli_query($conn,"UPDATE Player  SET Name = '$names' WHERE uid ='".$row['uid']."'");
                                        $rec = mysqli_query($conn,"UPDATE Player  SET Do = '$DonationNobility' WHERE uid ='".$row['uid']."'");
                                        
?>
                                <section>
                                <tr><td align="center"><? echo $i;?>.</td>
                                    <td><? echo $row['Name'];?></td>
                                    <td><? echo  number_format($row['Do']); ?></td>
                                    <td><img src="Ranking/ranks/<? echo $classicon;?>"></td>
                                </tr>
                                </section>
<? $i++; } ?>
                            </tbody>
                        </table>


ملف Pk المسؤل عن رانك البي كي


كود:
 <? include 'config.php'; ?>
          <?
$result = mysqli_query($conn,"SELECT * FROM accounts WHERE NOT ID = 0") or die(mysqli_error());
$i = '1';

while ($row = mysqli_fetch_array($result)) {
?>

<?php 

$reg1
=mysqli_query($conn,"insert into Player (uid) Values('".$row['ID']."')");

  
?>
<?php 
?>
                        <table id="zctb" class="display table table-striped table-bordered table-hover text-center" cellspacing="0" width="100%">
                            <thead>
                                <tr>
                                    <th style="width: 120px;"><center>Nu</center></th>
                                    <th><center>Name Player</center></th>
                                    <th><center>Point pk</center></th>
                                </tr>
                            </thead>
                            <tbody>
<?
$result = mysqli_query($conn,"SELECT * FROM Player ORDER BY pk DESC") or die(mysqli_error());
$i = '1';

while ($row = mysqli_fetch_array($result)) {
    
    
                                        $myFile = "$link_c/".$row['uid'].".ini";
                                        if (file_exists(''.$$myFile.''))
                                        {
                                        $lines = file($myFile);
                                        }
                                        list($name_a, $names) = explode("=", $lines[4]);
                                        list($PkP_a, $pka)          = explode("=", $lines[31]);
                                        $rec = mysqli_query($conn,"UPDATE Player  SET Name = '$names' WHERE uid ='".$row['uid']."'");
                                        $rec = mysqli_query($conn,"UPDATE Player  SET pk = '$pka' WHERE uid ='".$row['uid']."'");
?>                                                
                                <section>
                                <tr><td align="center"><? echo $i;?>.</td>
                                    <td><? echo $row['Name'];?></td>
                                    <td style="color:red;"><? echo $row['pk'];?></td>
                                </tr>
                                </section>
<? $i++; } ?>
                            </tbody>
                        </table>


ملف player المسؤل عن اللاعبيين


كود:
 <? include 'config.php'; ?>
<?
$result = mysqli_query($conn,"SELECT * FROM accounts WHERE NOT ID = 0") or die(mysqli_error());
$i = '1';

while ($row = mysqli_fetch_array($result)) {
?>

<?php 

$reg1
=mysqli_query($conn,"insert into Player (uid) Values('".$row['ID']."')");

  
?>
<?php 
?>
                        <table id="zctb" class="display table table-striped table-bordered table-hover text-center" cellspacing="0" width="100%">
                            <thead>
                                <tr>
                                    <th style="width: 120px;"><center>Nu</center></th>
                                    <th><center>Player</center></th>
                                    <th><center>Avater</center></th>
                                    <th><center>Character</center></th>
                                    <th><center>Level</center></th>
                                </tr>
                            </thead>
                            <tbody>
<?
$result = mysqli_query($conn,"SELECT * FROM Player ORDER BY Level DESC") or die(mysqli_error());
$i = '1';

while ($row = mysqli_fetch_array($result)) {
    
    
                                        $myFile = "$link_c/".$row['uid'].".ini";
                                        if (file_exists(''.$$myFile.''))
                                        {
                                        $lines = file($myFile);
                                        }
                                        
                                        list($name_a, $names) = explode("=", $lines[4]);
                                        list($face_aa, $aFace)         = explode("=", $lines[3]);
                                        list($cps, $cpsnumber)  = explode("=", $lines[27]);
                                        list($class, $classnumber ) = explode("=", $lines[5]);
                                        list($level, $levelnumber) = explode("=", $lines[22]);
                                        $rec = mysqli_query($conn,"UPDATE Player  SET Name = '$names' WHERE uid ='".$row['uid']."'");
                                        $rec = mysqli_query($conn,"UPDATE Player  SET Level = '$levelnumber' WHERE uid ='".$row['uid']."'");
                                        $rec = mysqli_query($conn,"UPDATE Player  SET Face = '$aFace' WHERE uid ='".$row['uid']."'");
                                        $rec = mysqli_query($conn,"UPDATE Player  SET CLass = '$classnumber' WHERE uid ='".$row['uid']."'");
?>

                                                    
                                <section>
                                <tr><td align="center"><? echo $i;?>.</td>
                                    <td><? echo $row['Name'];?></td>
                                    <td><img class=" img-circle" src="Ranking/faces/<? echo $row['Face'];?>.jpg" style="margin: 0 auto; border-radius:50%;"  width=40px;" class="user-image" alt=""></td>
                                    <td><? echo classs($row['CLass']);?></td>
                                    <td><? echo $row['Level'];?></td>
                                </tr>
                                </section>
<? $i++; } ?>
                            </tbody>
                        </table>


اخيرا ملف cps المسؤل عن السي بي اس


كود:
 <? include 'config.php'; ?>
<?
$result = mysqli_query($conn,"SELECT * FROM accounts WHERE NOT ID = 0") or die(mysqli_error());
$i = '1';

while ($row = mysqli_fetch_array($result)) {
?>

<?php 

$reg1
=mysqli_query($conn,"insert into Player (uid) Values('".$row['ID']."')");

  
?>
<?php 
?>
                         <table id="zctb" class="display table table-striped table-bordered table-hover text-center" cellspacing="0" width="100%">
                            <thead>
                                <tr>
                                    <th style="width: 120px;"><center>Nu</center></th>
                                    <th><center>Name Player</center></th>
                                    <th><center>CPS</center></th>
                                </tr>
                            </thead>
                            <tbody>
<?
$result = mysqli_query($conn,"SELECT * FROM Player ORDER BY Cps DESC") or die(mysqli_error());
$i = '1';

while ($row = mysqli_fetch_array($result)) {
    
    
                                        $myFile = "$link_c/".$row['uid'].".ini";
                                        if (file_exists(''.$$myFile.''))
                                        {
                                        $lines = file($myFile);
                                        }
                                        list($name_a, $names) = explode("=", $lines[4]);
                                        list($cps, $cpsnumber)  = explode("=", $lines[27]);

                                        list($DonationNobility_a, $DonationNobility)        = explode("=", $lines[29]);
                                        $rec = mysqli_query($conn,"UPDATE Player  SET Name = '$names' WHERE uid ='".$row['uid']."'");
                                        $rec = mysqli_query($conn,"UPDATE Player  SET Cps = '$cpsnumber' WHERE uid ='".$row['uid']."'");
?>                            
                                <section>
                                <tr><td align="center"><? echo $i;?>.</td>
                                    <td><? echo $row['Name'];?></td>
                                    <td><? echo number_format($row['Cps']);?></td>
                                </tr>
                                </section>
<? $i++; } ?>
                            </tbody>
                        </table>

أتمني بس حد يديني الفكرة وأنا هكمل علي كدا لأني بقالي يومين بحاول ومش عارف أوصل لحاجة

أخيرا بقي ملف الداتا بيز اللي السورس بيعمله


كود:
[Character] UID=1000001 Body=1003 Face=110 Name=Monk Class=60 Map=1002 X=328 Y=238 Spouse=None FirstClass=0 SecoundeClass=0 CPBoundPackToday=False FateFruitUsed=0 CPBoundPack=0 ConquerPointsLimitaion=0 ConquerPointDropLimitLayer=1 ExchangeNormalAvaliability=0 ExchangehighAvaliability=0 GiantGhasomKill=0 MiningAttempts=140 GiantGhasomKillClaimed=False WrongAnswers0=0 WrongAnswers1=0 WrongAnswers2=0 WrongAnswers3=0 WrongAnswers4=0 Avatar=0 Merchant=0 MerchantApplicationEnd=0 PMap=0 PMapX=0 PMapY=0 Agility=1 Strength=3 Vitaliti=4 Spirit=2 Atributes=0 Reborn=0 Level=140 Haire=516 Experience=0 MinHitPoints=114 MinMana=0 ConquerPoints=100000 BoundConquerPoints=0 Money=9000 VirtutePoints=0 PkPoints=150 QuizPoints=0 Enilghten=0 EnlightenReceive=0 DailySignUpDays=0 LateSignIn=0 DailyMonth=0 DailySignUpRewards=0 VipLevel=6 VipTime=636988553783974304 Achivement=0/32768/0/3584/0/0/0/0/0/0/0/0/0/0/ WHMoney=0 BlessTime=0 SpouseUID=0 HeavenBlessing=0 LostTimeBlessing=0 HuntingBlessing=0 OnlineTrainingPoints=0 JoinOnflineTG=0 Day=0 BDExp=0 SwordMaster=0 TeratoDragon=0 PurbleBanshee=0 DExpTime=0 RateExp=1 ExpBallUsed=0 ExpFruitUsed=0 SubProfInfo=0#0#0# Dragon=0/1/0/0/0/0/0/ Pheonix=0/2/0/0/0/0/0/ Turtle=0/4/0/0/0/0/0/ Tiger=0/3/0/0/0/0/0/ ChiPoints=4000 Flowers=1/0/0/0/0/0/0/0/0/ DonationNobility=100000000 GuildID=0 GuildRank=0 UnionUID=0 UnionRank=0 UnionExploits=0 UnionGoldBrick=0 KingDomExploits=0 FRL=0 SRL=0 Reincanation=False LotteryEntries=0 DbTry=False DemonEx=0/0/0/0/ PkName=0 PkUID=0 Cursed=0 HeroRewards=1/103/0/ Activeness=0/5/3/1/1/1/2/0/0/3/0/0/ AparenceType=0 HitShoot=0 MisShoot=0 ArenaDeads=0 ArenaKills=0 EpicQuestChance=0 TKills=0 OnlineMinutes=16 HistoryChampionPoints=0 TodayChampionPoints=0 ChampionPoints=0 DailySpiritBeadItem=0 SpecialTitles=0, SecurityPass=0,0,0, TCT=0 RacePoints=0 NameEditCount=0 ClaimStateGift=0 enervant=0 InventorySashCount=0 CountryID=0 MyFootBallPoints=0 ExpProtection=0 PrestigePoints=3762 BanCount=0 BuyKingdomDeeds=0 KingDomDeeds=0 RechargeProgress=0 ExchangeShop=0/ ExtraAtributes=0 OpenHousePack=0 ClaimTowerAmulets=0 TOMClaimTeamReward=0 MyTowerOfMysteryLayer=0 MyTowerOfMysteryLayerElite=0 TowerOfMysterychallenge=3 TowerOfMysteryChallengeFlag=0 TOMSelectChallengeToday=0 TOMChallengeToday=0 TOMRefreshReward=0 TOM_Reward=0 JPAStamp=0 EpicTrojan=0/0/0/0/1/1/0/0/0/0/0/0/0/0/1/0/0/0/1/0/ GiveFlowersToPerformer=0 UseChiToken=0 CanChangeWindWalkerFree=636962625190642794

وشكرا