Jump to content
MakeWebGames

skooda

Members
  • Posts

    494
  • Joined

  • Last visited

  • Days Won

    2

Everything posted by skooda

  1. skooda

    Onebip

    2checkout.com is the right place but it take a fee and you have send to business app to be verified all it cost 49$ to submit an app but I will say its worth it also you can find find PROMO on google to make it cost 1$.
  2. He has some good deals
  3. You don't have to have a budget.The problem these days with people who have a budget for a coder don't put heir heart in the game and its a good chance a year later or so they will stop the game because they still won't get the big picture. Also it don't matter how many mafia games out there because every day a mafia game is shut down.
  4. skooda

    **Review**Host

    Yes that's an option. For now were still in develop
  5. skooda

    **Review**Host

    Hey guys I'm in a middle of my hosting project and I need some comments to see what you guys think.That's all thanks. gamehostyou.info
  6. Umm who host you and also send me an msg
  7. He might not have the dns setup up right
  8. Hope ya had fun on your bday.
  9. I recommend w3school
  10. Well msg me im looking for some help
  11. ok sorry want happen again.
  12. -- phpMyAdmin SQL Dump -- version 3.4.9 -- [url]http://www.phpmyadmin.net[/url] -- -- Host: localhost -- Generation Time: Feb 17, 2012 at 02:07 PM -- Server version: 5.0.92 -- PHP Version: 5.2.9 SET SQL_MODE="NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */; /*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */; /*!40101 SET NAMES utf8 */; -- -- Database: `wisecrim_torn` -- -- -------------------------------------------------------- -- -- Table structure for table `attacklogs` -- CREATE TABLE IF NOT EXISTS `attacklogs` ( `log_id` int(11) NOT NULL auto_increment, `attacker` int(11) NOT NULL default '0', `attacked` int(11) NOT NULL default '0', `result` enum('won','lost') NOT NULL default 'won', `time` int(11) NOT NULL default '0', `stole` int(11) NOT NULL default '0', `attacklog` longtext NOT NULL, `annon` smallint(1) NOT NULL default '0', `outcome` text NOT NULL, PRIMARY KEY (`log_id`) ) ENGINE=MyISAM DEFAULT CHARSET=latin1 AUTO_INCREMENT=54 ; -- -- Dumping data for table `attacklogs` --
  13. Show us some of your work :)
  14. heres my attack log   <?PHP require "globals.php"; $id = abs((int)$_GET['id']); if(!$id){ echo "Not in the attack logs."; $h->endpage(); die(); } $s = $db->fetch_row($db->query("SELECT * FROM `attacklogs` where log_id=$id")); if(!$s){ echo "Not in the attack logs."; $h->endpage(); die(); } if($s['annon'] == 1){ $nm = $db->fetch_row($db->query("select username from users where userid=$s[attacked]")); echo "<h2>Someone VS $nm[username]</h2>"; }else{ $nm = $db->fetch_row($db->query("select username from users where userid=$s[attacker]")); $nm1 = $db->fetch_row($db->query("select username from users where userid=$s[attacked]")); echo "<h2>$nm[username] VS $nm1[username]</h2>"; } echo "<br>$s[attacklog]<br><br>$s[outcome]<br><hr><a href=events.php>> Back</a><hr>";   $h->endpage(); ?>
  15. ok now I get this when I do a attack   Pirate Battles The fight Ratio is 0.117647058824% You are in a Battle with ForkingPawn You come in with your Fists With a Strenght of 0 (+%) Takes their turn to swing at you! ForkingPawn hit you for 8,698 damage using their ArmaLite M-15A4 Rifle . QUERY ERROR: Column count doesn't match value count at row 1 Query was INSERT INTO attacklogs VALUES('',19,1,'won',unix_timestamp(),214747368,' g') ;
  16. Hey guys I keep getting this error in my attack I had this ruthless city attack but my users dont like it and its a waste of time so I had this one click attack I had it since my old game and now im trying to put it on my new game and it isnt working.   <?php $menuhide=0; $atkpage=1; include "globals.php"; $user_class=$ir; $q=$db->query("SELECT u.*,us.* FROM users u LEFT JOIN userstats us ON u.userid=us.userid WHERE u.userid={$_GET['ID']}"); $attack_person=$db->fetch_row($q); $qo=$db->query("SELECT i.* FROM items i WHERE i.itmid={$user_class['equip_primary']}"); $user_class1=$db->fetch_row($qo); $q1=$db->query("SELECT i.* FROM items i WHERE i.itmid={$user_class['equip_armor']}"); $user_class2=$db->fetch_row($q1); $weapon= "{$user_class1['itmname']}"; if(mysql_num_rows($qo) == 0) { $weapon="Fists"; } $eq=$db->query("SELECT i.* FROM items i WHERE i.itmid IN({$attack_person['equip_primary']})"); if(mysql_num_rows($eq) == 0) { $wep="Fists"; } else { $cnt=0; while($r=$db->fetch_row($eq)) { $enweps[]=$r; $cnt++; } $weptouse=rand(0,$cnt-1); $wep=$enweps[$weptouse]['itmname']; } $enperc=(int) ($ir['energy']/$ir['maxenergy']*100); $gq=$db->query("SELECT * FROM gangs WHERE gangID={$attack_person['gang']}"); $ga=$db->fetch_row($gq); $error = ($enperc < 25) ? "You need to have at least 25% of your energy if you want to attack someone." : $error; $error = ($user_class['jail'] > 0) ? "You can't attack someone if you are in jail." : $error; $error = ($user_class['hospital'] > 0) ? "You can't attack someone if you are in the hospital." : $error; $error = ($_GET['ID'] == "") ? "You didn't choose someone to attack." : $error; $error = ($_GET['ID'] == $userid) ? "You can't attack yourself." : $error; $error = ($attack_person['location'] != $user_class['location']) ? "You must be in the same city as the person you are attacking. Duh." : $error; $error = ($attack_person['username'] == "") ? "That person doesn't exist." : $error; $error = ($attack_person['hospital'] > 0) ? "You can't attack someone that is in the hospital." : $error; $error = ($attack_person['jail'] > 0) ? "You can't attack someone that is in jail." : $error; //$error = ($user_class['level'] > 5 && $attack_person['level'] < 6) ? "You can't attack someone that is level 5 or below because you are higher than level 5." : $error; ////////////// ^^ if you like to have it so noobs stay alive longer ?><div id="main " style="a"><center><?PHP if (isset($error)){ echo ($error); $h->endpage(); exit; } if ($user_class['energy'] >= $user_class['maxenergy']/4) { $user_class['energy']-= floor($user_class['maxenergy']/4); $me=floor($user_class['maxenergy']/4); $db->query("UPDATE users SET energy=energy- {$me} WHERE userid=$userid"); $_SESSION['attacklog']=""; $_SESSION['attackdmg']=0; } $yourhp = $user_class['hp']; $theirhp = $attack_person['hp']; $damagestat = number_format($user_class['strength']) ; $itstat = $user_class1['weapon']; $damplu = $damagestat * ($itstat*100); $ratio=($user_class['level']*100)/($attack_person['level']*100); print "<center>Pirate Battles <font color=yellow>The fight Ratio is ".$ratio."%</font> You are in a Battle with ".$attack_person['username']." </center>"; echo " You come in with your ".$weapon." With a Strenght of ".$damplu." (+".$itstat."%) "; $wait = ($user_class['agility'] > $attack_person['agility']) ? 1 : 0; $hospital = 600; $qo=$db->query("SELECT i.* FROM items i WHERE i.itmid IN({$attack_person['equip_primary']})"); $r1=$db->fetch_row($qo); $qo=$db->query("SELECT i.* FROM items i WHERE i.itmid IN({$attack_person['equip_primary']})"); $r2=$db->fetch_row($qo); $damage = (int) (($user_class1['weapon']*$user_class['strength']/($attack_person['guard']/1.5))); $theirdamage = (int) (($r1['weapon']*$attack_person['strength']/($user_class['guard']/1.5))); while($yourhp > 0 && $theirhp > 0){ $damage = ($damage < 1) ? 1 : $damage; $theirdamage = ($theirdamage < 1) ? 1 : $theirdamage; if($wait == 0){ $yourhp = $yourhp - $theirdamage; echo "<font color=red>".$attack_person['usename']."Takes their turn to swing at you!</font> "; echo $attack_person['username']. " hit you for " .number_format($theirdamage). " damage using their ".$wep.". "; } else { $wait = 0; } if($yourhp > 0) { $damage = (int) (($user_class1['weapon']*$user_class['strength']/($attack_person['guard']/1.5))); $damage = ($damage < 1) ? 1 : $damage; $theirhp = $theirhp - $damage; echo "<font color=green>You swing at them!</font> "; echo "You hit " .$attack_person['username']. " for " . number_format($damage) . " damage using your ".$weapon.". "; } if($theirhp <= 0){ // attacker won $winner = $user_class['ID']; $theirhp = 0; $moneywon = floor($attack_person['money'] /10); $expwon = 150 - (25 * ($user_class['level'] - $attack_person['level'])); $expwon = ($expwon < 0) ? 0 : $expwon; $hosptime=20; $hospreason = "Attacked by ".$user_class['username']."" ; $newexp = $expwon + $user_class['exp']; $newmoney = $user_class['money'] + $moneywon; $result = $db->query("UPDATE `users` SET `exp` = '".$newexp."', money = '".$newmoney."' WHERE `userid`='".$user_class['userid']."'"); $newmoney = $attack_person['money'] - $moneywon; $result = $db->query("UPDATE `users` SET `hp`= 1,`hospital` ='".$hosptime."', `money` = '".$newmoney."', `hospreason` = '".$hospreason."' WHERE `userid`='".$attack_person['userid']."'"); $atklog=mysql_escape_string($_SESSION['attacklog']); $db->query("INSERT INTO attacklogs VALUES('',".$user_class['userid'].",".$attack_person['userid'].",'won',unix_timestamp(),".$moneywon.",'$atklog') ;"); event_add($attack_person['userid'], "You were hospitalized by ".$user_class['username']." for 20 minutes."); $final ="<center>You hospitalized " .$attack_person['username']. ". You gain $expwon exp and stole $".$moneywon." from " .$attack_person['username']. ". </center>"; $pwnd =""; $warq=$db->query("SELECT * FROM gangwars WHERE (warDECLARER={$user_class['gang']} AND warDECLARED={$attack_person['gang']}) OR (warDECLARED={$user_class['gang']} AND warDECLARER={$attack_person['gang']})"); if ($db->num_rows($warq) > 0) { $war=$db->fetch_row($warq); $db->query("UPDATE gangs SET gangRESPECT=gangRESPECT-2 WHERE gangID={$attack_person['gang']}"); $ga['gangRESPECT']-=2; $db->query("UPDATE gangs SET gangRESPECT=gangRESPECT+2 WHERE gangID={$user_class['gang']}"); $pwnd =" You earnt 2 respect for your gang!"; } if ($ga['gangRESPECT']<=0 && $attack_person['gang']) { $db->query("UPDATE users SET gang=0 WHERE gang={$attack_person['gang']}"); $db->query("DELETE FROM gangs WHERE gangRESPECT<='0'"); $db->query("DELETE FROM gangwars WHERE warDECLARER={$ga['gangID']} or warDECLARED={$ga['gangID']}"); } $bots=array(96,94,5,97,98,99,142,138,138,140,141,1 46,143,144,145);//Your Battle Tent Bots $moneys=array(96 =>5000,94 =>5000,5 => 500,97 => 5000, 98 => 500, 99 => 10000, 142 => 1500,138 =>10000,140 =>10000,141 =>10000,146 =>20000,143 =>15000,144 =>15000,145 =>15000); if(in_array($attack_person['userid'],$bots)) { $gain=$moneys[$attack_person['userid']]; $db->query("UPDATE users SET money=money+$gain WHERE userid=$userid",$c); $finalbot =""; $finalbot =" Congrats, for beating the Challenge Bot {$attack_person['username']}, you have earnt \$$gain!"; } } if($yourhp <= 0){ // defender won $winner = $attack_person['ID']; $yourhp = 0; $moneywon = floor($user_class['money'] /10); $expwon = 100 - (25 * ($attack_person['level'] - $user_class['level'])); $expwon = ($expwon < 0) ? 0 : $expwon; $hosplost = "Lost to ".$attack_person['username']."" ; $hosptime=20; $newexp = $expwon + $attack_person['exp']; $newmoney = $attack_person['money'] + $moneywon; $result = $db->query("UPDATE `users` SET `exp` = '".$newexp."', money = '".$newmoney."' WHERE `userid`='".$attack_person['userid']."'"); $newmoney = $user_class['money'] - $moneywon; $result = $db->query("UPDATE `users` SET `hp`= 1,`hospital` ='".$hosptime."' ,`money` = '".$newmoney."', `hospreason` = '".$hosplost."' WHERE `userid`='".$user_class['userid']."'"); $atklog=mysql_escape_string($_SESSION['attacklog']); $db->query("INSERT INTO attacklogs VALUES('',".$attack_person['userid'].",".$user_class['userid'].",'won',unix_timestamp(),".$moneywon.",'$atklog') ;"); $final = $attack_person2 . " beat you and stole $".$moneywon." from you."; $pwnd =""; $warq=$db->query("SELECT * FROM gangwars WHERE (warDECLARER={$user_class['gang']} AND warDECLARED={$attack_person['gang']}) OR (warDECLARED={$user_class['gang']} AND warDECLARER={$attack_person['gang']})"); if ($db->num_rows($warq) > 0) { $war=$db->fetch_row($warq); $db->query("UPDATE gangs SET gangRESPECT=gangRESPECT+1 WHERE gangID={$attack_person['gang']}"); $db->query("UPDATE gangs SET gangRESPECT=gangRESPECT-1 WHERE gangID={$user_class['gang']}"); $pwnd =" You lost 1 respect for your gang!"; } } } echo "$final"; echo "$pwnd "; echo "$finalbot"; $h->endpage(); ?></div></center>     Parse error: syntax error, unexpected T_LNUMBER, expecting ')' in /home/fefegx10/public_html/attack.php on line 142 <<<<<<<<This is the error that keep pulling up also i dint make this attack it was just in my old files and I decided to you is it.
  17. Sounds great but the ranks and all aren't hard to add to a gang file
  18. Send me your back up gym and the one your trying to edit
  19. I want to thank you all very much I really aprreciate I got it to work.
  20. I did something like this send me your files
  21. Im trying my best this is just not working for me.
  22. Yea I got it but no image goes in
  23. Hey could someone check out my explore and add images above every cattegory with a background around it.EX-a square around it.This is my code I been trying to do this all day but I still cant figure this out.   <?php include "globals.php"; Doing('Exploring the city'); $tresder=(int) rand(100,1999) - $ir['awareness_upgrades']; if($ir['location'] > 1) { die("<center>This Page is Unavailable while in a different location."); } if($ir['jail'] or $ir['hospital']) { die("This page cannot be accessed while in jail or hospital."); } //-- Finding items query //-- Are they abusing it? $db->query("UPDATE users SET cityclicks=cityclicks+1 WHERE userid={$ir['userid']}"); if($ir['cityclicks'] >= 150) { $db->query("UPDATE users SET fedjail=1 WHERE userid={$ir['userid']}"); $db->query("INSERT INTO fedjail VALUES('', {$ir['userid']}, 365, 1, 'Refreshing in the city-1 Day. If you feel you are innocent send an email to [email protected]. ')"); } $fia=(int) rand(10,2999) - $ir['awareness_upgrades']; $fib=(int) rand(10,2999) - $ir['awareness_upgrades']; if($fia == $fib) { $iq=mysql_query("SELECT * FROM items WHERE findable=1 ORDER BY rand() LIMIT 1",$c); $r=mysql_fetch_array($iq); $item=$r['itmid']; $userid=$ir['userid']; mysql_query("UPDATE donastats SET itemsfound=itemsfound+1 WHERE userid=$userid",$c); mysql_query("UPDATE users SET findings=findings+1 WHERE userid={$ir['userid']}"); mysql_query("INSERT INTO inventory VALUES ('', $item, $userid, 1)",$c); $db->query("UPDATE items SET count=count+1 WHERE itmid=$item"); event_add($userid,"You found a/an <b>{$r['itmname']}</b> while walking round the city!",$c); event_add(1,"$userid found a/an <b>{$r['itmname']}</b> while walking round the city!",$c); } if($ir['pagetutorials'] == ON) { print " <center><table width=75% border=3 bordercolor=#BDBDBD cellspacing=0 bgcolor=#FBFBE0 frame=border rules=none class=table> <tr><td width=75><img src='info.jpg'><br><font color=#999999><i>[• <a href=preferences.php><font color=#999999><i>Turn Off</i></font></a>]</i></font></center></td><td><center><b>{$set['game_name']} Tutorial</b></center><font color=#000000 size=2> Come here to check out the Markets, Casino, Shops and much more. </font></td></tr></table></center>"; } print "<b><h3>Wise City</h3></font></b><hr> <center><table width=99% cellpadding='5' cellspacing='0' border='0'><tr> <td align='left'><b>Market place:</u></b></td><td align='left'><b>North side:</u></b></td> <td align='left'><b>Red-Light District:</u></b></td></tr><tr><td width=33% align='left' valign='top'> • <a href='itemmarket.php'>Item Market</a><br /> • <a href='auctions.php'>Auction Market</a><br /> • <a href='pointsmarket.php'>Points Market</a><br/> • <a href='donator.php'>Donator house</a><br /></td> • <a href='Deals.php'>Hot Deals!!</a><br /> <td width=33% align='left' valign='top'> • <a href='estateagent.php'>Estate Agent</a><br /> • <a href='stocks.php'>Stock Market</a><br /> • <a href='bank.php'>City Bank</font></a><br/> • <a href='forums.php'>Forums</font></a><br/></td> <td width=33% align='left' valign='top'> • <a href=exchange.php>Credit Exchange</font></a><br/> • <a href='dump.php'>Dump</a><br /> • <a href='travel.php'>Travel Agency</font></a><br /> • <a href='crimes.php'>Crimes</font><br /><br /><br /><br /></a></td> </td></tr><tr>"; print " <td align='left'><b>West side:</u></b></td><td align='left'><b>Central:</u></b></td> <td align='left'><b>East side:</u></b></td></tr><td width=33% align='left' valign='top'> • <a href='userlist.php'>User List</font></a><br /> • <a href='stafflist.php'>Staff</font></a><br /> • <a href='competitions.php'>Competitions</font></a><br /> • <a href='halloffame.php'>Hall of Fame</font></a><br /> • <a href='stats.php'>Game Stats</font></a><br/> • <a href='pointsexchange.php'>Points Exchange</font></a><br/> • <a href='usershop.php'>Current Bazaars</font></a><br/><br/><br/></td><td width=33% align='left' valign='top'> • <a href='propose.php'>Church</font></a><br/></b> • <a href='dogs.php'>Pet</font></a><br/></b> • <a href='partner.php?action=divorce'>Divorce</a><br /> • <a href='education.php'>University</font></a><br/> • <a href='ads.php'>Newspaper Ads</font></a><br/> • <a href='askstaff.php'>Ask a question</font></a><br />"; print "</td> <td width=33% align='left' valign='top'> • <a href='shops.php?shop=22'>Pawn Shop</a><br /> • <a href='shops.php?shop=3'>Bits-N-Pcs</a><br /> • <a href='shops.php?shop=4'>Guns are Fun</a><br /> • <a href='shops.php?shop=15'>Jewellery Store</a><br /> • <a href='shops.php?shop=19'>Knives for a Pro</a><br /> • <a href='shops.php?shop=20'>Leons Leathers</a><br /> • <a href='shops.php?shop=21'>Gabies Gadgets</a><br /> • <a href='shops.php?shop=16'>Wreckless Wheels</a> </td>"; print "</tr><tr> <td align='left'><b>Gangstas alley:</u></b></td><td align='left'><b>South side:</u></b></td><td align='left'><b>Downtown:</u></b></td> <td align='left'><b></u></b></td></tr><tr><td width=33% align='left' valign='top'> • <a href='creategang.php'>Create a Gang</font></a><br /> • <a href='gangcentral.php'>Gang list</font></a><br /> • <a href='gangwars.php'>Gang wars</font></a><br /> • <a href='missions.php'>Missions</font></a><br /><br> </font></td><td width=33% align='left' valign='top'> • <a href='gym.php'>Local Gym</font></a><br /> • <a href='tilnews.php'>Newspaper</font></a><br /> • <a href='usersonline.php'>Users Online</font></a><br /> • <a href='mailbox.php'>Mailbox</font></a><br/> </font></td><td width=33% align='left' valign='top'> • <a href='jail.php'>City Jail</font></a><br /> • <a href='hospital.php'>Hospital</font></a><br />"; print "</td> <td width=33% align='left' valign='top'> </table><br />"; print "<div align=center><hr><font size=2>This is your referal link: http://{$domain}/register.php?REF=$userid <br /> Every signup from this link earns you <b>250 points and 31 donator days status</b> once they reach level 5!<br /><hr> </table>"; print "<br /><br />"; $h->endpage(); ?>
  24. Good job I like it
×
×
  • Create New...