Jump to content
MakeWebGames

criminal wars

Members
  • Posts

    78
  • Joined

  • Last visited

Everything posted by criminal wars

  1. <td width='30%'>Username</td> <td width='40%'><input type=text class="other" size="12" name=username onkeyup='CheckUsername(this.value);'></td> <td width='30%'><div id='usernameresult'></div></td> <tr> <td>Password</td> <td><input type=password id='pw1' class="other" size="12" name=password onkeyup='CheckPasswords(this.value);PasswordMatch();'></td> <td><div id='passwordresult'></div></td> </tr> <tr> <tr> <td>Confirm Password</td><td><input type=password class="other" size="12" name=cpassword id='pw2' onkeyup='PasswordMatch();'></td> <td><div id='cpasswordresult'></div></td> </tr> <tr> <td>Email</td><td><input type=text class="other" size="12" name=email onkeyup='CheckEmail(this.value);'></td> <td><div id='emailresult'></div></td> </tr> <tr> <td>Gender</td> <td colspan='2'><select name='gender' type='dropdown'> <option value='Male'>Male <option value='Female'>Female</select></td> </tr> <tr> <td>Starter Gift:</td> <td><input type="radio" name="group1" value="10c"> 10 crystal's<br> <input type="radio" name="group1" value="500cash" checked> $500 cash</td> </tr> <tr> <td> </td> </tr> <tr> <td colspan="2" style="width: 150px;"> </td> </tr> <tr> <td style="width: 100px;"> </td> <td><input class="nor_but" type="submit" name="submit" value="" /></td> </tr> </table> <center><a href='login.php'><u>Return to Login</u></a></center><br /> </form> </center> <!-- Begin Main Content --> EOF; $IP = $_SERVER['REMOTE_ADDR']; $IP=addslashes($IP); $IP=mysql_real_escape_string($IP); $IP=strip_tags($IP); if(file_exists('ipbans/'.$IP)) { die("<b><font color=red size=+1>Your IP has been banned, there is no way around this.</font></b></body></html>"); } if($_POST['username']) { if($set['regcap_on']) { if(!$_SESSION['captcha'] or $_SESSION['captcha'] != $_POST['captcha']) { unset($_SESSION['captcha']); die("<font style=color:red> Captcha Test Failed</font><br /> <a href='register.php'>>Back<</a>"); } unset($_SESSION['captcha']); } if(!valid_email($_POST['email'])) { die("<font style=color:red>Sorry, the email is invalid.</font><br /> <a href='register.php'>>Back<</a>"); } if(strlen($_POST['username']) < 4) { die("<font style=color:red>Sorry, the username is too short.</font><br /> <a href='register.php'>>Back<</a>"); } $sm=100; if($_POST['promo'] == "") { $sm+=0; } $username=$_POST['username']; $username=str_replace(array("<", ">"), array("<", ">"), $username); $q=$db->query("SELECT * FROM users WHERE username='{$username}' OR login_name='{$username}'"); $q2=$db->query("SELECT * FROM users WHERE email='{$_POST['email']}'"); if($db->num_rows($q)) { print "<font style=color:red>Username already in use. Choose another.</font><br /> <a href='register.php'>>Back<</a>"; } else if($db->num_rows($q2)) { print "<font style=color:red>E-Mail already in use. Choose another.</font><br /> <a href='register.php'>>Back<</a>"; } else if($_POST['password'] != $_POST['cpassword']) { print "<font style=color:red>The passwords did not match, go back and try again.</font><br /> <a href='register.php'>>Back<</a>"; } else { if($db->num_rows($q)) { die("<font style=color:red>No creating referral multies. Bad dog.</font><br /> <a href='register.php'>>Back<</a>"); }   This is all you now can you check it out for me and fix what am talking about as you will see the gift are there but need the if states ment etc.. done for it to work
  2. Ok im really noobie at this little dont know why i cant figure this out and everything else i can do i've tried everything the only thing am stuc at is for it to be credied i added the radio group and now i need the post or if statement for it to credit them...
  3. can you gie me and axample of the coding thats need done
  4. i cant reall find the if statement of gender on my file oitherwise i can do it
  5. please am nooby can you just code it for me..
  6. basically on register.php file there is some where, that you can pick a gender male or female so i have made a new drop down menu where it say's starter gift and the 2 options you can pick is 10 crystal's $500 game cash these are 2 gifts you can pick when signing up but i need to put a coding in the file to make it work if anyone can give em a hand ....
  7. criminal wars

    help!

    just need a little can some one help me with some sort of slider for images like a little slideshow so i can show some nice images for my game example look at rift.com they got a nice slider
  8. that is great just what i needed and also can you just tell em how to put a background in it is it just like background-image:the image; is it like that
  9. just the three nav areas and how do you like make it neat and line it up with everything look here a example http://www.riftgame.com/
  10. can you just give me a example of the code please i dont know how to put it in to the login file or where to play it please
  11. i am working on a new project with mcv2 and wanted a login layout like this with 3 box or more like 1 box for login etc.... can some tell me how to do it
  12. Thanks Guys
  13. please would some one give me a litle scrit for chat box some like where users click chat once logged in and it willl take them to a place with rooms also they dont need to sign up as guest it takes them starigt through using their game name as nickname please need it urgent Mccodes V2!
  14. well i was kidding with the guy my user is not SaMz and he tok it serious..... and i dont sell things anymore i was told by Vitalend owner to sell them and he would split 50/40 but now i said no am not attempting to sell these scripts no more also how could it be a scam attempt if i was gna scam you i would have tried saying other dumb things also i just said what he told me to say he told me to go to min $50 and max something like $150
  15. thanks blade can i get queary please?
  16. well let me see...
  17. well lol it was a bit of nooby thing from me i fixed all i had to do was open a bank account also just wannated to know i have like 21 items ATM but says 2 item in circulation
  18. i sent a PM back now prove to me the i will hire you tommorow
  19. ok
  20. can you give me the table sql and the queary to insert please
  21. can you give me a fixed one please i would appreicate it :)
  22. criminal wars

    help!

    well in my game stats page i get this error   Warning: Division by zero in /home/gangstal/public_html/stats.php on line 24 here is my script of Stats: <?php include "globals.php"; $q=$db->query("SELECT userid FROM users"); $membs=$db->num_rows($q); $q=$db->query("SELECT userid FROM users WHERE bankmoney>-1"); $banks=$db->num_rows($q); $q=$db->query("SELECT userid FROM users WHERE gender='Male'"); $male=$db->num_rows($q); $q=$db->query("SELECT userid FROM users WHERE gender='Female'"); $fem=$db->num_rows($q); $total=0; $q=$db->query("SELECT money FROM users"); while($r=$db->fetch_row($q)) { $total+=$r['money']; } $avg=(int) ($total/$membs); $totalb=0; $q=$db->query("SELECT bankmoney FROM users WHERE bankmoney>-1"); while($r=$db->fetch_row($q)) { $totalb+=$r['bankmoney']; } $avgb=(int) ($totalb/$banks); $totalc=0; $q=$db->query("SELECT crystals FROM users"); while($r=$db->fetch_row($q)) { $totalc+=$r['crystals']; } $totali=0; $q=$db->query("SELECT inv_qty FROM inventory"); while($r=$db->fetch_row($q)) { $totali+=$r['inv_qty']; } $avgc=(int) ($totalc/$membs); $q=$db->query("SELECT mail_id FROM mail"); $mail=$db->num_rows($q); $q=$db->query("SELECT evID FROM events"); $events=$db->num_rows($q); print "<h3>Country Statistics</h3> You step into the Statistics Department and login to the service. You see some stats that interest you. <table width=75% cellspacing=1 class='table'> <tr> <th>Users</th><th>Money and Crystals</th></tr><tr><td> There are currently $membs {$set['game_name']} players, $male males and $fem females.</td> <td> Amount of cash in circulation: \$".money_formatter($total,"").". The average player has: \$".money_formatter($avg,"").". Amount of cash in banks: \$".money_formatter($totalb,"").". Amount of players with bank accounts: $banks The average player has in their bank accnt: \$".money_formatter($avgb,"").". Amount of crystals in circulation: ".money_formatter($totalc,"").". The average player has: ".money_formatter($avgc,"")." crystals.</td> </tr> <tr> <th>Mails/Events</th><th>Items</th></tr><tr><td> ".money_formatter($mail,"")." mails and ".money_formatter($events,"")." events have been sent.</td> <td> There are currently ".money_formatter($totali,"")." items in circulation.</td> </tr> </table>"; $h->endpage(); ?>   please help me out fix it...
  23. little help just wantted to know i have placed auction tab in explore and wannted to put like how many auction are going on so for example itemmarket market blah blah auction house [3] so basically instead of the 3 which is a example i want to put how many bid are on from the database can any ne give me the little code thing that pulls this data out from the database :thumbsup:
  24. Getting money back i personally think you should bid what ever you want but the money should not be taken off you util you win the item also say like you bid something very high but you win it and dont have the cash or crystals to pay that amount you bidded it should give you a negative balance to make you not try doing it again and teach you that its easy bidding what ever amount but not paying that easily :thumbsup:   or like give you certain amount of days say some thing like 3 days an if you can arrange money within them day you get banned from auction for 3-4days or W.E also this will enocourange the player to work harder to earn the money ....
  25. i just wannted to know in one of the game or some of them there is some thing like a bar that has your level on it and when a crime is done it loads up (which is you gaing exp) after it hits next your level will change a bar will restt i wannted to know if any one can help me with the code i have seen this in GangsterCity can anyone give me the litte code/ script for it please also i have try it with the orginial mccde exp thing buy changing the images around but i cant figer out how to put the text on top like the level thing if i put it in the middle it breaks my bar ... ***i now bad spelln n english****
×
×
  • Create New...