Need Help In Coding...

Started on the old forum in June 2008 · view the original in the archive · old links redirect here

10 replies · 5 views · started 18 years ago · 1 min read

Poll Need Help In Coding...

  • YES 0% · 0
  • NO 0% · 0

Votes are anonymous · No votes yet · Sign in to vote.

7 participants
inet Senior · 264 posts #1

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...

CODE<?php //////original copy of pinoy2.com

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

?>

<?php //header('Content-type: application/vnd.wap.xhtml+xml'); 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='".$uid."'")); 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='".$uid."'")); 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='".$uid."'")); 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='".$who."'")); 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 " "; 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 " "; echo "</body>"; echo "</html>"; exit(); }

$action = $_GET["action"]; $sid = $_GET["sid"]; $sitename = mysql_fetch_array(mysql_query("SELECT value FROM ibwf_settings WHERE name='sitename'")); $sitename = $sitename[0]; $uid = getuid_sid($sid); $theme = mysql_fetch_array(mysql_query("SELECT theme FROM ibwf_users WHERE id='".$uid."'")); $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 " "; echo "You are not logged in "; echo "Or Your session has been expired

"; echo "<a href="http://pinoy2.com/index.php">Login</a>"; echo " "; 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 " "; 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='".$uid."' AND penalty='1' OR uid='".$uid."' AND penalty='2'")); $banres = mysql_fetch_array(mysql_query("SELECT lastpnreas FROM ibwf_users WHERE id='".$uid."'")); $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 " "; 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 " "; 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 " "; 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 " "; 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 " "; 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 " "; 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 " "; 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 " "; 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 " "; 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 " "; echo "<img src="images/roll.gif" alt=""/> "; echo "see and play pinoy2.com ($adven2) $adven? Well good luck! Sneak quick!"; echo " "; //////ALL LISTS SCRIPT << echo mobads(); echo " "; echo "Welcome to online WAP Crime City! A Game to remember lol.."; echo " "; echo getshoutbox($sid); echo " "; echo mobads(); echo " "; echo "<a href="crimes.php?action=steal&sid=$sid">Steal Plusses!</a>"; echo "<a href="crimes.php?action=bank&sid=$sid">Bank Robbery!</a>"; echo "<a href="crimes.php?action=hijak&sid=$sid">High-Jacking!</a>"; echo "<a href="crimes.php?action=kill&sid=$sid">Kill for Money!</a>"; echo "<a href="crimes.php?action=ganglord&sid=$sid">Fight Gang Lord!</a>"; echo "<a href="crimes.php?action=tour&sid=$sid">Tournament!</a>"; echo "<a href="crimes.php?action=police&sid=$sid">[Eastern Police Department!]</a>"; echo " "; ////// UNTILL HERE >> echo " "; 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 " "; echo " "; }

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..

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.

thanatos Senior · 261 posts #4

jst like this..

function userage($uid)
{
    $sql = mysql_fetch_array(mysql_query("SELECT birthday FROM ibwf_users WHERE id='".$uid."'"));
    $uage = getage($sql[0]);
    if($uage<17)
    {
        return true;
    }else{
        false;
    }
}
thanatos Senior · 261 posts #5

hope that helps you bro inet..

rukiya Lead · 569 posts #6

jst like this..

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

it would be

function userage($uid)
{
    $sql = mysql_fetch_array(mysql_query("SELECT birthday FROM ibwf_users WHERE id='".$uid."'"));
    $uage = getage($sql[0]);
    if($uage>17)
    {
        return true;
    }else{
        return false;
    }
}
thanatos Senior · 261 posts #7

yeah my mistake.. pmpl.. hehe..

inet Senior · 264 posts #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.

inet Senior · 264 posts #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'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.

Sign in to reply.

Similar topics

Keyboard shortcuts

g f
Go to forums
g h
Go to your feed
g m
Go to messages
r
Reply (in a topic)
/
Search
j
Next post
k
Previous post
?
This list
Ctrl/⌘ + Enter
Send what you are writing
Ctrl/⌘ + B / I
Bold / italic while writing
Esc
Close