
Haunted Dawg
Members-
Posts
2,933 -
Joined
-
Last visited
Never -
Days Won
1
Content Type
Profiles
Forums
Events
Everything posted by Haunted Dawg
-
Re: Brothel V2 [FREE] Pog-one no one is going to be able to exploit the $will, but alrite.
-
Re: Passport [V2] Got 5 things for you. 1.- How much were you going to sell this for? 2.- You know there is more efficient one's around? 3.- Alot of if/else statements there when you can just need i think 4. 4.- 4/10. 5.- Congrats on your first mod but improve the efficiency and the rating's should go up.
-
Re: Need Help $3 @ www.bythost.com YOU GET A FREE .info!
-
Re: Gang surrender accept, SQL error. I fixed mine the way i said and now my gang file's work.
-
Re: Brothel V2 [FREE] My version: <?php include("globals.php"); echo '<h1>Brothel</h1>'; #### Prices ##############Bellow is females ok ############Bellow is the males ### $prices = array("##FEMALES##",'500','700','900','400',"##MALES##",'500','600','800','700'); if($_GET['act']) { $will = rand(1,5); $cost = abs(@intval($_POST['price'])); mysql_query("UPDATE users SET will=will+".$will.",money=money-".$cost." WHERE userid=".$ir['userid']) or die(mysql_error()); mysql_query("UPDATE users SET will=maxwill WHERE will>maxwill") or die(mysql_error()); echo 'You payed '.$_POST['who'].' '.money_formatter($cost).' to sleep with them, you gain '.$will.'% will.'; $h->endpage(); exit; } else { echo '<h3>Woman:</h3> <table border="1" cellspacing="0" class="table" width="50%"> <tr> <th>Name</th> <th>Price</th> <th>Rent</th> </tr> <tr> <td>Roxy</td> <td>'.money_formatter($prices[1]).'</td> <td><form action="'.$_SERVER['PHP_SELF'].'?act=buy" method="post"><input type="hidden" name="who" value="roxy"><input type="hidden" name="price" value="'.$prices[1].'"><input type="submit" value="Rent"></form></td> </tr> <tr> <td>Kelly</td> <td>'.money_formatter($prices[2]).'</td> <td><form action="'.$_SERVER['PHP_SELF'].'?act=buy" method="post"><input type="hidden" name="who" value="Kelly"><input type="hidden" name="price" value="'.$prices[2].'"><input type="submit" value="Rent"></form></td> </tr> <tr> <td>Shanique</td> <td>'.money_formatter($prices[3]).'</td> <td><form action="'.$_SERVER['PHP_SELF'].'?act=buy" method="post"><input type="hidden" name="who" value="Shanique"><input type="hidden" name="price" value="'.$prices[3].'"><input type="submit" value="Rent"></form></td> </tr> <tr> <td>Rhonda</td> <td>'.money_formatter($prices[4]).'</td> <td><form action="'.$_SERVER['PHP_SELF'].'?act=buy" method="post"><input type="hidden" name="who" value="Rhonda"><input type="hidden" name="price" value="'.$prices[4].'"><input type="submit" value="Rent"></form></td> </tr> </table> <h3>Men:</h3> <table border="1" cellspacing="0" class="table" width="50%"> <tr> <th>Name</th> <th>Price</th> <th>Rent</th> </tr> <tr> <td>Bill</td> <td>'.money_formatter($prices[6]).'</td> <td><form action="'.$_SERVER['PHP_SELF'].'?act=buy" method="post"><input type="hidden" name="who" value="Bill"><input type="hidden" name="price" value="'.$prices[6].'"><input type="submit" value="Rent"></form></td> </tr> <tr> <td>Marcus</td> <td>'.money_formatter($prices[7]).'</td> <td><form action="'.$_SERVER['PHP_SELF'].'?act=buy" method="post"><input type="hidden" name="who" value="Marcus"><input type="hidden" name="price" value="'.$prices[7].'"><input type="submit" value="Rent"></form></td> </tr> <tr> <td>Greg</td> <td>'.money_formatter($prices[8]).'</td> <td><form action="'.$_SERVER['PHP_SELF'].'?act=buy" method="post"><input type="hidden" name="who" value="Greg"><input type="hidden" name="price" value="'.$prices[8].'"><input type="submit" value="Rent"></form></td> </tr> <tr> <td>Sam</td> <td>'.money_formatter($prices[9]).'</td> <td><form action="'.$_SERVER['PHP_SELF'].'?act=buy" method="post"><input type="hidden" name="who" value="Sam"><input type="hidden" name="price" value="'.$prices[9].'"><input type="submit" value="Rent"></form></td> </tr> </table>'; } $h->endpage(); ?> 10 minutes. Not ment to be a rude post but games with more efficient stuff would work better... EDITED: i thought it was will max not maxwill.
-
Re: Brothel V2 [FREE] Still in 20 minute you could do a better job :P.
-
Re: MD5 Generator Nyna, alot of people keep md5 generated code's to help out other's. but as for Tonka's script could be very harmfull to the site. You might want to limit the listing's.
-
Re: Brothel V2 [FREE] Might use some array's in there to make it run faster.
-
Re: Gang surrender accept, SQL error. The post i just posted now works, ive tested it :)
-
Re: Gang surrender accept, SQL error. function gang_staff_viewsurrenders() { global $db,$ir,$c,$userid,$gangdata; if(!isset($_POST['subm'])) { print "<form action='yourgang.php?action=staff&act2=viewsurrenders' method='post'> Choose who to accept the surrender from. <input type='hidden' name='subm' value='submit' /> Gang: <select name='sur' type='dropdown'>"; $wq=$db->query("SELECT s.*,w.* FROM surrenders s LEFT JOIN gangwars w ON s.surWAR=w.warID WHERE surTO={$ir['gang']}"); while($r=$db->fetch_row($wq)) { if($gangdata['gangID'] == $r['warDECLARER']) { $w="You";$f="warDECLARED"; } else { $w="Them";$f="warDECLARER"; } $ggq=$db->query("SELECT * FROM gangs WHERE gangID=".$r[$f]); $them=$db->fetch_row($ggq); print "<option value='{$r['surID']}'>War vs. {$them['gangNAME']} (Msg: {$r['surMSG']})</option>"; } print "</select> <input type='submit' value='Accept Surrender' /></form>"; } else { $_POST['sur'] = abs((int) $_POST['sur']); $q=$db->query("SELECT surWAR FROM surrenders WHERE surID={$_POST['sur']}"); list($_POST['war']) = $db->fetch_row($q); $wq=$db->query("SELECT * FROM gangwars where warID={$_POST['sur']}"); $r=$db->fetch_row($wq); if($gangdata['gangID'] == $r['warDECLARER']) { $w="You"; $f="warDECLARED"; } else { $w="Them"; $f="warDECLARER"; } $db->query("DELETE FROM surrenders WHERE surID={$_POST['sur']}"); $db->query("DELETE FROM gangwars WHERE warID={$_POST['sur']}"); $ggq=$db->query("SELECT * FROM gangs WHERE gangID=".$r[$f]);$them=$db->fetch_row($ggq);$event=str_replace("'","''","[url='gangs.php?action=view&ID={$ir[']{$gangdata['gangNAME']}[/url] have accepted the surrender from [url='gangs.php?action=view&ID={$them[']{$them['gangNAME']}[/url], the war is over!");$db->query("INSERT INTO gangevents VALUES('',{$ir['gang']},unix_timestamp(),'$event') , ('',".$r[$f].",unix_timestamp(),'$event')");print "You have accepted surrender, the war is over."; } } You had to change all your $_POST['war'] to $_POST['sur']
-
Re: Gang surrender accept, SQL error. Your problem is not in the function gang_staff_surrender() its in gang_surrender_accept() i think it is.
-
Re: cron I believe there is a site to run crons on, google it. Or just change hosts, www.byethost.com is very cheap.
-
Re: Whorehouse for V.2 Yes i have the upgraded one, you can buy new whore's own a whore house ;D
-
Re: MCCode v3 I also know things :D, i talk to CB some times, if anyone is wondering about MC V3 just ask jesse or CB.
-
Re: learning mysql_real_escape_string just need to verify. This is how i would do it... if($_POST['name']) { $name = mysql_real_escape_string(htmlentities($_POST['name'])); mysql_query("INSERT INTO db VALUES(NULL,'$name')") or die(mysql_error()); echo $name.' has been inserted into the database.'; exit; } echo '<form action="'.$_SERVER['PHP_SELF'].'" method="post"> Name: <input type="text" name="name"> <input type="submit" value="Submit"> </form>';
-
Re: Playstation 3 I still prefer xbox 360 ;D
-
Re: Setting settings to default Thanks
-
Re: Multiple explore pages Exactly what i ment pog-one <?php include("globals.php"); function databst() { globals $db,$ir,$set; } switch($ir['location']) { case '1': city_one(); break; case '2': city_two(); break; } function city_one() { databst(); echo 'blah'; } function city_two() { databst(); echo 'blah'; } $h->endpage(); ?>
-
Re: Omg i just made best move ever not And again... Why make a game if you cant code, rather get some one to teach you, or use a free host to make a game and then move to a normal host. I for sure wont spend $300 if i dont know how to use it. It like buying some thing you never going to use!
-
Re: Multiple explore pages i would still go with pog-one's example, or just use function's & switch.
-
How would i set all my settings to default, because ive done some thing wrong here and i dont like it XD Im using adobe photoshop 2
-
Re: Hit-List [$10] My shoutbox is secure from giving your self crystals, admin, money and other wise with the database, the only thing that can be done is refreshing in the shoutbox. You claimed you fixed it? By adding a code that changed meta to mega? GO DREAM! So as far as i know my shoutbox is pretty secure from exploiting the database, unless you can provide proof, by letting me test it, then ******!
-
Re: Hit-List [$10] Do you always have to say something about my mod's? post the sql injection for my shoutbox and i might start to believe ya.
-
Re: Hit-List [$10] you must be a little slow i said before hand ill stop but your the bigger man lol, your a joker mate thats it and stop claiming to my friends your a hacker on msn... because you may get slapped by a real one So who is the real hacker? You? PWEESE! slap me if you can :P PHP Challenge? how old are you? and why a mod? why not some thing usefull? like i did with spere. a 3 line script that can do alot :)
-
Re: CSS Textbox Edit ANY VERSION i already have a girlfriend