Need Help In Coding...

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Need Help In Coding...

    I need help..


    I'm currently coding for a new game... entitled WAP Crime City..
    Can some one help me to create a function for the computation of age af Lava users.. or wapdesire version?

    It is badly needed.. lol

    The script version one i'm currently coding shall be realeased free for wapforum members WITHOUT THE OTHER ADD ONS..
    The version two will be sold to Brontok WITHOUT THE OTHER ADD ONS..

    The beta version shall be open for bidding...

    Since the script is too dangerous to minors, i need to limit the users to 17 years old and above...



    <div class='codetop'>CODE</div><div class='codemain' style='height:200px;white-space:pre;overflow:auto'><?php
    //////original copy of pinoy2.com

    $version = "version: v1.0";
    $adven = "Crimes!";
    $adven2 = "Wap Criminals!";

    ?>

    <?php
    //header(&#39;Content-type: application/vnd.wap.xhtml+xml&#39;);
    echo "<?xml version=\"1.0\"?>";
    echo "<!DOCTYPE html PUBLIC \"-//WAPFORUM//DTD XHTML Mobile 1.0//EN\" \"http://www.wapforum.org/DTD/xhtml-mobile10.dtd\">";
    ?>
    <html xmlns="http://www.w3.org/1999/xhtml">
    <?php
    include("config.php");
    include("core.php");
    $bcon = connectdb();

    function cantplay_crimes($uid)
    {
    $sql = mysql_fetch_array(mysql_query("SELECT plusses FROM ibwf_users WHERE id=&#39;".$uid."&#39;"));
    if($sql[0]<=10)
    {
    return true;
    }else{
    false;
    }
    }
    function cant_steal($uid)
    {
    $sql = mysql_fetch_array(mysql_query("SELECT gplus FROM ibwf_users WHERE id=&#39;".$uid."&#39;"));
    if($sql[0]<=100)
    {
    return true;
    }else{
    false;
    }
    }
    function be_jailed($uid)
    {
    $sql = mysql_fetch_array(mysql_query("SELECT crimes FROM ibwf_users WHERE id=&#39;".$uid."&#39;"));
    if($sql[0]<=5)
    {
    return true;
    }else{
    false;
    }
    }
    function hindi_pwede($who)
    {
    $sql = mysql_fetch_array(mysql_query("SELECT plusses FROM ibwf_users WHERE id=&#39;".$who."&#39;"));
    if($sql[0]<=100)
    {
    return true;
    }else{
    false;
    }
    }
    if (!$bcon)
    {
    echo "<head>";
    echo "<title>$sitename</title>";
    echo "<link rel=\"stylesheet\" type=\"text/css\" href=\"../themes/white.css\">";
    echo "<head>";
    echo "<body>";
    echo "<p align=\"center\">";
    echo "<img src=\"../images/notok.gif\" alt=\"!\"/>
    ";
    echo "Error! Cannot Connect To Database...

    ";
    echo "This error happens usually when backing up the database, please be patient...";
    echo "</p>";
    echo "</body>";
    echo "</html>";
    exit();
    }

    $action = $_GET["action"];
    $sid = $_GET["sid"];
    $sitename = mysql_fetch_array(mysql_query("SELECT value FROM ibwf_settings WHERE name=&#39;sitename&#39;"));
    $sitename = $sitename[0];
    $uid = getuid_sid($sid);
    $theme = mysql_fetch_array(mysql_query("SELECT theme FROM ibwf_users WHERE id=&#39;".$uid."&#39;"));
    $who = $_GET["who"];
    if((islogged($sid)==false)||($uid==0))
    {
    echo "<head>";
    echo "<title>Error!!!</title>";
    echo "<link rel=\"stylesheet\" type=\"text/css\" href=\"../themes/white_medium.css\">";
    echo "</head>";
    echo "<body>";
    echo "<p align=\"center\">";
    echo "You are not logged in
    ";
    echo "Or Your session has been expired

    ";
    echo "<a href=\"http://pinoy2.com/index.php\">Login</a>";
    echo "</p>";
    echo "</body>";
    echo "</html>";
    exit();
    }
    if(isbanned($uid))
    {
    echo "<head>";
    echo "<title>Error!!!</title>";
    echo "<link rel=\"stylesheet\" type=\"text/css\" href=\"../themes/$theme[0]\">";
    echo "</head>";
    echo "<body>";
    echo "<p align=\"center\">";
    echo "<img src=\"../images/notok.gif\" alt=\"x\"/>
    ";
    echo "You are Banned

    ";
    $banto = mysql_fetch_array(mysql_query("SELECT timeto, pnreas, exid FROM ibwf_penalties WHERE uid=&#39;".$uid."&#39; AND penalty=&#39;1&#39; OR uid=&#39;".$uid."&#39; AND penalty=&#39;2&#39;"));
    $banres = mysql_fetch_array(mysql_query("SELECT lastpnreas FROM ibwf_users WHERE id=&#39;".$uid."&#39;"));
    $remain = $banto[0]- time();
    $rmsg = gettimemsg($remain);
    echo "Time Left: $rmsg
    ";
    $nick = getnick_uid($banto[2]);
    echo "By: $nick
    ";
    echo "Reason: $banto[1]";
    echo "<a href=\"http://pinoy2.com/index.php\">Login</a>";
    echo "</p>";
    echo "</body>";
    echo "</html>";
    exit();
    }

    if(!cantplay_crimes($uid))
    {
    echo "<head>";
    echo "<title>$sitename</title>";
    echo "<link rel=\"stylesheet\" type=\"text/css\" href=\"../themes/white.css\">";
    echo "<head>";
    echo "<body>";
    echo "<p align=\"center\">";
    echo "<img src=\"../images/notok.gif\" alt=\"!\"/>
    ";
    echo "You have still many plusses why are you here?

    ";
    echo "This game is for those doesnt have enough plusses!";
    echo "</p>";
    echo "</body>";
    echo "</html>";
    exit();
    }
    if(!cant_steal($uid))
    {
    echo "<head>";
    echo "<title>$sitename</title>";
    echo "<link rel=\"stylesheet\" type=\"text/css\" href=\"../themes/white.css\">";
    echo "<head>";
    echo "<body>";
    echo "<p align=\"center\">";
    echo "<img src=\"../images/notok.gif\" alt=\"!\"/>
    ";
    echo "You have too many game Plusses!

    ";
    echo "Learn to share this free opportunity to others who has low Game Plusses!";
    echo "</p>";
    echo "</body>";
    echo "</html>";
    exit();
    }
    if(!hindi_pwede($uid))
    {
    echo "<head>";
    echo "<title>$sitename</title>";
    echo "<link rel=\"stylesheet\" type=\"text/css\" href=\"../themes/white.css\">";
    echo "<head>";
    echo "<body>";
    echo "<p align=\"center\">";
    echo "<img src=\"../images/notok.gif\" alt=\"!\"/>
    ";
    echo "The person you want to steal plusses has not enough Plusses!

    ";
    echo "Learn to spy the persons with the highest plusses! Target them! tnt.. ";
    echo "</p>";
    echo "</body>";
    echo "</html>";
    exit();
    }
    if(!be_jailed($uid))
    {
    echo "<head>";
    echo "<title>$sitename</title>";
    echo "<link rel=\"stylesheet\" type=\"text/css\" href=\"../themes/white.css\">";
    echo "<head>";
    echo "<body>";
    echo "<p align=\"center\">";
    echo "<img src=\"../images/notok.gif\" alt=\"!\"/>
    ";
    echo "You have been Jailed!

    ";
    echo "Too many crimes committed.. The Police just cought you for that reason!";
    echo "</p>";
    echo "</body>";
    echo "</html>";
    exit();
    }
    if($action=="main")
    {
    addonline(getuid_sid($sid),"playing $adven","../crimes.php?action=main");
    $view = $_GET["view"];
    if($view=="")$view="date";
    echo "<card id=\"main\" title=\"Playing $adven\">";
    echo "<p align=\"center\">";
    echo "<img src=\"images/roll.gif\" alt=\"*\"/>
    ";
    echo "see and play pinoy2.com ($adven2) $adven? Well good luck!
    Sneak quick!
    ";
    echo "</p>";
    //////ALL LISTS SCRIPT <<
    echo mobads();
    echo "
    ";
    echo "<center>Welcome to online WAP Crime City!
    A Game to remember lol..</center>";
    echo "
    ";
    echo getshoutbox($sid);
    echo "
    ";
    echo mobads();
    echo "
    ";
    echo "<center><a href=\"crimes.php?action=steal&sid=$sid\">Steal Plusses!</a></center>";
    echo "<center><a href=\"crimes.php?action=bank&sid=$sid\">Bank Robbery!</a></center>";
    echo "<center><a href=\"crimes.php?action=hijak&sid=$sid\">High-Jacking!</a></center>";
    echo "<center><a href=\"crimes.php?action=kill&sid=$sid\">Kill for Money!</a></center>";
    echo "<center><a href=\"crimes.php?action=ganglord&sid=$sid\">Fight Gang Lord!</a></center>";
    echo "<center><a href=\"crimes.php?action=tour&sid=$sid\">Tournamen t!</a></center>";
    echo "<center><a href=\"crimes.php?action=police&sid=$sid\">[Eastern Police Department!]</a></center>";
    echo "</p>";
    ////// UNTILL HERE >>
    echo "<p align=\"center\">";
    echo "<a href=\"index.php?action=funm&sid=$sid\"><img src=\"images/roll.gif\" alt=\"*\"/>";
    echo "Fun/Games</a>
    ";
    echo "<a href=\"index.php?action=main&sid=$sid\"><img src=\"images/home.gif\" alt=\"*\"/>";
    echo "Home</a>";
    echo "</p>";
    echo "
    ";
    }
    </div>

    ANYONE WHO COULD HELP ME SHALL BE ENTITLED TO BE INCLUDED AS THE ADVISOR OF THE CODER IN THE PUBLISHING OF THE SCRIPT.. YOUR NAME WILL BE TREASURED...



    THANKS IN ADVANCE...

    THE TOURNAMENT IS FOR THE --- AND THIS IS CONSIDERED AS AN ADD ON SO IT IS NECESSARY TO PURCHASE THE ADD ON IF YOU WANT THE COMPLETE VERSION..


    THIS SCRIPT IS ON MY PRIVATE DOMAIN FOR CODING,EDITING, AND TRIAL SCRIPT TESTING..
    I WILL NOT PUT THIS SCRIPT ON MY PUBLIC DOMAIN.. FOR SECURITY REASONS..
    0
    YES
    0%
    0
    NO
    0%
    0
    Services

    Are you looking to take your wap or wapsite to a higher level? Do you want to stand out and rise above your competitors?

    Below is a list of services I offer:

    Wap Design and Customized Coding -The first way to stand out in a crowd is to have a brilliant and unique design for your wap or wapsite.

    Rates

    General consulting – My current hourly rate is $100 / hour.
    Custom Wapsite Community - My current rate is $500 / Wap Community Development.

    #2
    pmsl if its anything like manhunt and the punisher il av lol, a got servered for those games when i was 15 lol
    Want something coded email me at sales@webnwaphost.com for a prices.




    Comment


      #3
      the is already a function to calculate the age of users. look in the core.php

      Comment


        #4
        jst like this..

        Code:
        function userage($uid)
        {
            $sql = mysql_fetch_array(mysql_query("SELECT birthday FROM ibwf_users WHERE id=&#39;".$uid."&#39;"));
            $uage = getage($sql[0]);
            if($uage<17)
            {
                return true;
            }else{
                false;
            }
        }

        Comment


          #5
          hope that helps you bro inet..

          Comment


            #6
            jst like this..

            Code:
            function userage($uid)
            {
                $sql = mysql_fetch_array(mysql_query("SELECT birthday FROM ibwf_users WHERE id=&#39;".$uid."&#39;"));
                $uage = getage($sql[0]);
                if($uage<17)
                {
                    return true;
                }else{
                    false;
                }
            }
            [/b]
            it would be
            Code:
            function userage($uid)
            {
                $sql = mysql_fetch_array(mysql_query("SELECT birthday FROM ibwf_users WHERE id=&#39;".$uid."&#39;"));
                $uage = getage($sql[0]);
                if($uage>17)
                {
                    return true;
                }else{
                    return false;
                }
            }

            Comment


              #7
              yeah my mistake.. pmpl.. hehe..

              Comment


                #8
                Wizard, Thanatos, Rukiya, Bcfc you will be part of the names that i will include..

                the first four..

                Thanks for your share..
                Thanks for your help..

                The script is now 80 percent coded..

                Thanks..
                Services

                Are you looking to take your wap or wapsite to a higher level? Do you want to stand out and rise above your competitors?

                Below is a list of services I offer:

                Wap Design and Customized Coding -The first way to stand out in a crowd is to have a brilliant and unique design for your wap or wapsite.

                Rates

                General consulting – My current hourly rate is $100 / hour.
                Custom Wapsite Community - My current rate is $500 / Wap Community Development.

                Comment


                  #9
                  pmsl if its anything like manhunt and the punisher il av lol, a got servered for those games when i was 15 lol[/b]

                  i got the version of manhunt b4 they put the less violent one




                  Comment


                    #10
                    is it a GTA game bro? NICE!

                    Comment


                      #11
                      do you need the full copy of the game well pm me hehehe for the transaction and more info


                      this game is now ready.. hehehe 2 nights working for the full script nonstop no sleep.. hehehe


                      right now i&#39;m coding for 3 new games lol quite busy



                      the release of this game for version one is just right after the version two shall be sold

                      the game is ready to be yours.. the demo link is just see my site.. lol

                      expect for more games soon...
                      Services

                      Are you looking to take your wap or wapsite to a higher level? Do you want to stand out and rise above your competitors?

                      Below is a list of services I offer:

                      Wap Design and Customized Coding -The first way to stand out in a crowd is to have a brilliant and unique design for your wap or wapsite.

                      Rates

                      General consulting – My current hourly rate is $100 / hour.
                      Custom Wapsite Community - My current rate is $500 / Wap Community Development.

                      Comment

                      Working...
                      X