
indysolo621
Members-
Posts
29 -
Joined
-
Last visited
indysolo621's Achievements
Newbie (1/14)
0
Reputation
-
Try $newer = mysql_query("SELECT * FROM grppusers WHERE id='$target'"); line160 $abcdef=mysql_fetch_object($newer); Since $newer is already a query there is no reason to call mysql_query again when you do mysql_fetch_object
-
If anyone is interested in buying I will be happy to get the paypal receipts for them.
-
I was playing around with making a simple shooting game this summer, but sadly don't have time to continue to work on this project. So I have 1 pet (cat), and some weapons, bullets, and smoke. I am looking to sell these either as a lot. I do not have the .psds for them just the .pngs, but they are pretty large. Here they are Looking for $30 for these, but will negotiate. The art wasn't done by me, but was bought from other artists.
-
Stick mafia is now up! http://204.93.159.80/~stickmaf . Site domain name will change to http://stickmafia.ismywebsite.com sometime tommorow but please leave a review here so I can know what I need to improve on. Thanks and have fun!
-
ok and I actualy put two ' not a "
-
other than that should it work? where does it have the ''?
-
incase people dont know to look in reason for edit thing under post here is his screenshot link. http://i878.photobucket.com/albums/ab341/20grant10/untitled-2.jpg Do you have permission to use those images?
-
unlimited tree free - unlimited everything pretty much but no crons. ONly problem is they are down right now as they upgrade to a better version. But when they come back check it out :D . unlimitedtree.com
-
Here is the code for donator I found on forum and edited some so would work for me. But please tell em if this will work or what I need to fix. Thank you :). IPN_DONATOR.php <?php session_start(); require "global_func.php"; if($_SESSION['loggedin']==0) { header("Location: login.php");exit; } $userid=$_SESSION['userid']; require "header.php"; $h = new headers; $h->startheaders(); include "mysql.php"; global $c; $is=mysql_query("SELECT u.*,us.* FROM users u LEFT JOIN userstats us ON u.userid=us.userid WHERE u.userid=$userid",$c) or die(mysql_error()); $ir=mysql_fetch_array($is); check_level(); $fm=money_formatter($ir['money']); $lv=date('F j, Y, g:i a',$ir['laston']); $h->userdata($ir,$lv,$fm); $h->menuarea(); global $_CONFIG; define("MONO_ON", 1); $set=array(); $settq=mysql_query("SELECT * FROM settings"); while($r=mysql_fetch_row($settq)) { $set[$r['conf_name']]=$r['conf_value']; } // read the post from PayPal system and add 'cmd' $req = 'cmd=_notify-validate'; foreach ($_POST as $key => $value) { $value = urlencode(stripslashes($value)); $req .= "&$key=$value"; } // post back to PayPal system to validate $header .= "POST /cgi-bin/webscr HTTP/1.0\r\n"; $header .= "Content-Type: application/x-www-form-urlencoded\r\n"; $header .= "Content-Length: " . strlen($req) . "\r\n\r\n"; $fp = fsockopen ('www.paypal.com', 80, $errno, $errstr, 30); // assign posted variables to local variables $item_name = $_POST['item_name']; $item_number = $_POST['item_number']; $payment_status = $_POST['payment_status']; $payment_amount = $_POST['mc_gross']; $payment_currency = $_POST['mc_currency']; $txn_id = $_POST['txn_id']; $receiver_email = $_POST['receiver_email']; $payer_email = $_POST['payer_email']; if (!$fp) { } else { fputs ($fp, $header . $req); while (!feof($fp)) { $res = fgets ($fp, 1024); if($payment_status != "Completed") { fclose ($fp);die(""); } if(mysql_num_rows(mysql_query("SELECT * FROM dps_accepted WHERE dpTXN='{$txn_id}'")) > 0) { fclose ($fp);;die(""); } if($receiver_email != $set['paypal']) { fclose ($fp);die(""); } if($payment_currency != "USD") { fclose ($fp);die(""); } $packr=explode('|',$item_name); if(str_replace("www.","",$packr[0]) != str_replace("www.","",$_SERVER['HTTP_HOST'])) { fclose($fp);mysql_query("INSERT INTO test VALUES('', 'DOMAIN FUCK UP!')"); die(""); } if($packr[1] != "DP") { fclose($fp);die(""); } $pack=$packr[2]; $packinfo = mysql_fetch_row(mysql_query("SELECT * FROM packages WHERE id='$pack' AND deleted='0' LIMIT 1")); if(!$packinfo) { fclose($fp);die(""); } if($packinfo[cost] != $payment_amount) { fclose ($fp); die(""); } $buyer=$packr[3]; $for=$buyer; mysql_query("UPDATE users u LEFT JOIN userstats us ON u.userid=us.userid SET u.money=u.money+'$packinfo[money]', u.crystals=u.crystals+'$packinfo[crystals]' WHERE u.userid='$for'"); $d = $packinfo[ddays]; $t = $packinfo[id]; mysql_query("INSERT INTO dps_accepted VALUES('', {$buyer}, {$for}, '$t', unix_timestamp(), '$txn_id')"); ########} ########else if (strcmp ($res, "INVALID") == 0) { ######## mysql_query("INSERT INTO test VALUES('', 'INVALID')"); ########} } fclose ($fp); } ?> DONATOR.php <?php session_start(); require "global_func.php"; if($_SESSION['loggedin']==0) { header("Location: login.php");exit; } $userid=$_SESSION['userid']; require "header.php"; $h = new headers; $h->startheaders(); include "mysql.php"; global $c; $is=mysql_query("SELECT u.*,us.* FROM users u LEFT JOIN userstats us ON u.userid=us.userid WHERE u.userid=$userid",$c) or die(mysql_error()); $ir=mysql_fetch_array($is); check_level(); $fm=money_formatter($ir['money']); $cm=money_formatter($ir['crystals'],''); $lv=date('F j, Y, g:i a',$ir['laston']); $h->userdata($ir,$lv,$fm,$cm); $h->menuarea(); print <<<EOF <h3>Donations</h3> If you become a donator to Stick Mafia, you will receive (each time you donate): EOF; if(mysql_num_rows(mysql_query("SELECT id FROM packages")) < 1): echo "Sorry, but there are currently no packages in the game yet."; else: $q=mysql_query("SELECT * FROM packages WHERE deleted!='1' ORDER BY cost ASC"); while($r=mysql_fetch_array($q)): echo "<fieldset><legend>$r[name] (\$$r[cost],--)</legend><ul>"; if($r[money] > 0) echo "[*]\$".number_format($r[money])." game money."; if($r[crystals] > 0) echo "[*]$r[crystals] crystals."; if($r[iq] > 0) echo "[*]$r[iq] IQ, the hardest stat in the game to get."; if($r[ddays] > 0) echo "[*]$r[ddays] days Donator Status: Red name + cross next to your name."; echo "[*]17% Energy every 5 minutes instead of 8%. (For aslong as you have Donator Status)[*]Access to Friends and Black lists[/list]"; echo '<form action="https://www.paypal.com/cgi-bin/webscr" method="post">'; echo '<input type=hidden name=cmd value=_xclick>'; echo '<input type="hidden" name="business" value="[email protected]">'; echo '<input type="hidden" name="item_name" value="Stick Mafia|Donator Pack|'.$r[id].'|'.$userid.'">'; echo '<input type="hidden" name="amount" value="'.$r[cost].'.00">'; echo '<input type="hidden" name="no_shipping" value="1">'; echo '<input type="hidden" name="return" value="http://stickmafia.unlimitedtree.com">'; echo '<input type="hidden" name="cancel_return" value="http://stickmafia.unlimitedtree.com">'; echo '<input type="hidden" name="notify_url" value="http://stickmafia.unlimitedtree.com/ipn_donator.php">'; echo '<input type="hidden" name="cn" value="Your Player ID">'; echo '<input type="hidden" name="currency_code" value="USD">'; echo '<input type="hidden" name="tax" value="0">'; echo '<input type="image" src="https://www.paypal.com/en_US/i/btn/x-click-but21.gif" border="0" name="submit" alt="Make payments with PayPal - it\'s fast, free and secure!">'; echo '</form>'; echo "</fieldset>"; endwhile; endif; $h->endpage();
-
Yay! it worked thanks :D
-
I'm using mclite so there is no css and in the header it says <style> body { font-family:helvetica, arial, geneva, sans-serif;font-size:12;color: black; scrollbar-base-color: #005B70; scrollbar-arrow-color: #F3960B; scrollbar-DarkShadow-Color: #000000; } a:visited,a:active,a:hover,a:link { color: black;text-decoration: none; } table,tr,td { font-family:helvetica, arial, geneva, sans-serif;font-size: 12; } img { border:none; } textarea { font-family:helvetica, arial, geneva, sans-serif;font-size:12;color: black; } </style> </head> > I see the text thing but how to a add my custom font their and make it the default font?
-
I have a custom font uploaded on my website but how do I get the text to use that font?
-
couldnt you just add a character tabel to the user part of the DB and say if character is >1 do the vampire stuff and <1 do werewolf stuff. Would be quite simple but would just need to change stuff in code accordingly. That is if this would work
-
ok :) I looked up the code you guys were talking about but it doesnt work :(
-
ok thanks Ill look into it :D whats up with these deleted posts?