Jump to content
MakeWebGames

CoRnNuB

Members
  • Posts

    80
  • Joined

  • Last visited

Everything posted by CoRnNuB

  1. hhey ok thanks thats done now but now when i bet and click higher or lower it says   The website cannot display the page   HTTP 500       Most likely causes: •The website is under maintenance. •The website has a programming error.
  2. by files do you mean on my cpanel make sure i name them <?php.highlow.php
  3. my last post is all the stuff that comes up when i click on my highlow so there must be something wrong with the code or ive done something wrong
  4. High/Low '; // Below = The Monk's Code // $POST['bet'] = isset($_POST['bet']) && is_numeric($_POST['bet']) ? abs((int) $_POST['bet']) : false; $POST['oldnum'] = isset($_POST['oldnum']) && is_numeric($_POST['oldnum']) ? abs((int) $_POST['oldnum']) : false; $_POST['choice'] = mysql_real_escape_string(strip_tags($_POST['choice'])); if ($_POST['bet'] && !$_POST['choice']) // Player entered bet but hasn't chosen high/low yet { if (!in_array($_POST['bet'], array('500', '1000', '5000', '10000'))) { echo 'The bet you selected is not available'; } $bet =$_POST['bet']; if($bet > $ir['main']) { echo ' Not enough money! '; exit; } $num = number_format(rand(1,10)); echo ' The number is '.$num.'. Will the next number be higher or lower than '.$num.'? '; } else if ($_POST['choice'] && $_POST['oldnum'] && $_POST['bet']) // Player chose high/low { $newnum = number_format(rand(1,10)); $oldnum = $_POST['oldnum']; $guess = $_POST['choice']; $bet = $_POST['bet']; if($newnum < $oldnum) { $lala = 'low'; } else if($newnum > $oldnum) { $lala = 'high'; } else if($newnum === $oldnum) { $lala = $guess; } if($lala !== $guess) { $result = 2; } else if($lala === $guess) { $result = 1; } if(!$result) { die("Error!"); } // No result was generated $db->query("UPDATE `users` SET `money`=`money`-".$bet." WHERE (`userid`=".$userid.")"); // Take away bet if($result === 1) // Player won { $prize=$bet * 2; // Prize money for winning echo ' Congratulations! You won your bet of \$'.$bet.' '; $db->query("UPDATE `users` SET `money`=`money`+".$prize." WHERE (`userid`=".$userid.")"); echo 'You guessed '.$guess.', the previous number was '.number_format($oldnum).' and the new number was '.number_format($newnum).'. Is the next number going to be higher or lower than '.number_format($newnum).'? '; } else if($result === 2) // Player lost { echo ' Sorry you lost your bet of \$'.number_format($bet).' You guessed '.$guess.', the previous number was '.number_format($oldnum).' and the new number was '.number_format($newnum).'. Is the next number going to be higher or lower than '.number_format($newnum).'? '; } } else { // Default display echo ' Welcome to the High/Low casino!   i now get this after following the instructions any one able to help again
  5. sorry i didnt put them in them tags couldnt find out how
  6. if ( !defined($_CONFIG['define_code']) ) { echo 'This file cannot be accessed directly.'; exit; } echo '<center> <h3>High/Low</h3> </center>'; // Below = The Monk's Code // $POST['bet'] = isset($_POST['bet']) && is_numeric($_POST['bet']) ? abs((int) $_POST['bet']) : false; $POST['oldnum'] = isset($_POST['oldnum']) && is_numeric($_POST['oldnum']) ? abs((int) $_POST['oldnum']) : false; $_POST['choice'] = mysql_real_escape_string(strip_tags($_POST['choice'])); if ($_POST['bet'] && !$_POST['choice']) // Player entered bet but hasn't chosen high/low yet { if (!in_array($_POST['bet'], array('500', '1000', '5000', '10000'))) { echo 'The bet you selected is not available'; } $bet =$_POST['bet']; if($bet > $ir['money']) { echo '<center>Not enough money!</center>'; exit; } $num = number_format(rand(1,10)); echo '<center>The number is '.$num.'. Will the next number be higher or lower than '.$num.'? <table> <tr> <td> <form method="post"> <input type="hidden" value="'.$num.'" name="oldnum"> <input type="hidden" value="'.$bet.'" name="bet"> <input type="hidden" value="high" name="choice"> <input type="submit" value="Higher"> </form> </td> <td> <form method="post"> <input type="hidden" value="'.$num.'" name="oldnum"> <input type="hidden" value="'.$bet.'" name="bet"> <input type="hidden" value="low" name="choice"> <input type="submit" value="Lower"> </form> </td> </tr> </table> </center>'; } else if ($_POST['choice'] && $_POST['oldnum'] && $_POST['bet']) // Player chose high/low { $newnum = number_format(rand(1,10)); $oldnum = $_POST['oldnum']; $guess = $_POST['choice']; $bet = $_POST['bet']; if($newnum < $oldnum) { $lala = 'low'; } else if($newnum > $oldnum) { $lala = 'high'; } else if($newnum === $oldnum) { $lala = $guess; } if($lala !== $guess) { $result = 2; } else if($lala === $guess) { $result = 1; } if(!$result) { die("Error!"); } // No result was generated $db->query("UPDATE `users` SET `money`=`money`-".$bet." WHERE (`userid`=".$userid.")"); // Take away bet if($result === 1) // Player won { $prize=$bet * 2; // Prize money for winning echo '<center>Congratulations! You won your bet of \$'.$bet.' '; $db->query("UPDATE `users` SET `money`=`money`+".$prize." WHERE (`userid`=".$userid.")"); echo 'You guessed '.$guess.', the previous number was '.number_format($oldnum).' and the new number was '.number_format($newnum).'. Is the next number going to be higher or lower than '.number_format($newnum).'? <table> <tr> <td> <form method="post"> <input type="hidden" value="'.$newnum.'" name="oldnum"> <input type="hidden" value="'.$bet.'" name="bet"> <input type="hidden" value="high" name="choice"> <input type="submit" value="Higher"> </form> </td> <td> <form method="post"> <input type="hidden" value="'.$newnum.'" name="oldnum"> <input type="hidden" value="'.$bet.'" name="bet"> <input type="hidden" value="low" name="choice"> <input type="submit" value="Lower"> </form> </td> </tr> </table> </center>'; } else if($result === 2) // Player lost { echo '<center>Sorry you lost your bet of \$'.number_format($bet).' You guessed '.$guess.', the previous number was '.number_format($oldnum).' and the new number was '.number_format($newnum).'. Is the next number going to be higher or lower than '.number_format($newnum).'? <table> <tr> <td> <form method="post"> <input type="hidden" value="'.$newnum.'" name="oldnum"> <input type="hidden" value="'.$bet.'" name="bet"> <input type="hidden" value="high" name="choice"> <input type="submit" value="Higher"> </form> </td> <td> <form method="post"> <input type="hidden" value="'.$newnum.'" name="oldnum"> <input type="hidden" value="'.$bet.'" name="bet"> <input type="hidden" value="low" name="choice"> <input type="submit" value="Lower"> </form> </td> </tr> </table> </center>'; } } else { // Default display echo '<center>Welcome to the High/Low casino! <form action="highlow.php" method="post"> Select your bet: <select type="dropdown" name="bet"> <option value="500">$500</option> <option value="1000">$1000</option> <option value="5000">$5000</option> <option value="10000">$10000</option> </select> <input type="submit" value="Start Game!"> </form> </center>'; } // End Of The Monk's Code // ?>     heres a code i tried converting from v2 to redux and it dosnt seem to work ive been following the convertion guid but it aint working   and to finish it off i add this in to explore echo '<a href="'.gen_url('highlow',true).'">High Low</a>';   any help would be much appritiated
  7. CoRnNuB

    a game script

    what would i write in if i want to search a land based one like it
  8. CoRnNuB

    a game script

    whats the solar empire game script il check it out
  9. CoRnNuB

    a game script

    if there is solar ones like th\t wouldnt someone of made an army one
  10. CoRnNuB

    a game script

    is there any war strategy scripts of any kind
  11. CoRnNuB

    a game script

    or something like it with not so many fetures that maybe i could edit a little
  12. CoRnNuB

    a game script

    is there any strategy war games that you know of simular to this
  13. CoRnNuB

    a game script

    or view this link http://www.king-and-country.com/faq.php?sel=2#1
  14. CoRnNuB

    a game script

    this is half the help tutorial read bits of it u will understand the aim of the game   What is the purpose of this game? This game is a simulation of 18th century warfare, both on land and at sea. You will be one of the thousands of officers in the army or the navy of one of the more than 50 countries in the world. Together with the people in your country, you aim to make your country the most successful of them all. Whether you are in the navy, fighting for domination of the seas and oceans and securing transport routes for your countries army, or in the army, fighting in cooperative strike to capture cities from other countries, you will form an important part of you countries success. This Beginners Guide explains the army part of the game. Your task is to rid the forests of robbers, raid foreign villages, attack enemy officers that have their camp close to the border, or even attack and possibly capture a city of another nation. You are helped in your quest by your soldiers, who will follow you in whatever you plan to undertake. You can hire them in the city castle. Don't hire too many, cause the salary of a low-ranked officer might not allow this. And don't do stupid things: you might get them (or yourself!) injured or even killed! ^top How do I earn money? There are 3 ways to earn money: Through your basic salary. Every half an hour you get your salary, and pay the salary of your soldiers. What is left of your salary you can save for later. If you get to a higher rank, by gaining enough experience (XP), your salary will be increased. The other way is through battle. If you capture enemy soldiers they can be ransomed by their officers. If you lose a battle, your soldiers may also be captured. Apart from your own income, you are also rewarded for the merits of your country. Every day you will receive some amount of gold depending on the amount of cities your country has and how long they already occupy them. In each city you can see the value you will get each day in gold from this city. This value increases by 5 every turn it is occupied by your country and is reset to 0 when the city is taken. Next to that you also get your share of the tax paid to the country by merchants. You will receive these amounts at 06:00 game time.     ^top How can I earn XP? For every battle you get some amount of XP, for a hard battle you get in general more XP than for a very light one. There is a lot of randomness involved in this though. Apart of this there are several cases in which you can get bonus XP: When you defeat another player: You get more XP for defeating a higher player. If you lose, the defender gets the XP. When you defeat a city (as part of larger army): You get more XP for a larger city and for a higher rank (being that with a higher rank you probably contributed more to the victory than the lower rank in the same strike force).   ^top Why can't I buy all types of units? Every city has its own supply of soldiers in the castle. It's possible that the unit you are looking for is not available in the city where you are. In that case, travel a bit around the country and you are sure to find it somewhere. Every 6 hours there's a chance the city will get new soldiers to hire. Note that only a few unit types are available everywhere; apart from these universal unit types there are special units for continents and countries (check the Army reference guide for more details). Make sure the unit you are looking for actually does appear in cities of your country. ^top Can I get special units from another country? Actually, you can. If you capture a city of another country that has a stock of their special units, you can buy them in this city. However while you are holding the city, it will be supplied with your special units so you get them only till they are sold out. ^top Where did my soldiers go? Soldiers don't desert you anymore if you run out of money to pay them. If your troops are gone, they will have either died in battle or you would have had to dismiss them. ^top Where should I attack? In the beginning, it would be wise to stay in the relatively safe market or forests of your own country. Also, look at the situation; don't go rushing in a camp of robbers with only a couple of apprentice soldiers... On higher ranks you can defend your beaches against pirates or the surrounding lands against robbers and barbarians. When you climb the ranks you'll notice that you don't find any robbers in the forests at all. This is not a coincidence; by then you already have build up enough reputation for robbers to stay out of your way. This is the moment to wage yourself outside the nation's borders. Again, don't attack other countries cities as you'll most likely get slaughtered going there alone. Rather raid some neutral villages. Raiding villages is easy, they don't give much resistance, however this is not without risk, as you have a chance the village will be helped by a nearby captain, or even a general... Once you have reached the rank of Lt. Colonel you can initiate invasion armies. This way you can combine forces with other players to attack the cities of other countries. It may be wise to do a bit of spying before you send you and your subordinates to a possible death... Regardless of your rank you also have the following options: Attack players of your own rank and higher in border-cities (you have a chance to capture them and get half of their gold). You can only attack players of countries that have a real war with your country. Join a higher officer in attacking a city. If you are part of his army when he takes over a city, you will be rewarded by much more XP than you can get in ordinary battles. You can see whether armies are being prepared when you go to the city castle. You must be at least 3rd Lieutenant to be able to participate in armies.   ^top What do I win by attacking? In many battles you will not earn any gold, but you will always get XP points for you and your soldiers. This will make them stronger and it will lead to your promotion. If you are promoted you get a higher salary and can hire more soldiers or promote more of your soldiers. In wars any battle you win against your enemy makes your country stronger and the enemy weaker, bringing them closer to defeat
  15. CoRnNuB

    a game script

    i dont know if its a script or custom made i was just woundering if there is a script simular to it if anyone knows of one tell me
  16. CoRnNuB

    a game script

    does anyone know if there is a game script simular to http://www.king-and-country.com
  17. is there a way to make this game a bit more like tribal wars where you cant build villages after your first one and how would u make it so that u have to conquer another vill using a special unit
  18. what would i right in there devana script
  19. does anyone have this script the download link is broken
  20. lets say on my donater.php i had these   buy will potions all wills behind here buy brave potions all braves behind here buy full restores all restores behind here buy randomizers all randomizers behind here buy donator packs all dps behind this link how easy would it be too code something like this and how long would it take
  21. hi sorry but that game is a basic V2 script with nothing else
  22. i get these errors after i install it can anyone help me   Warning: mysql_fetch_object(): supplied argument is not a valid MySQL result resource in /home/streets1/public_html/lottery.php on line 102 Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in /home/streets1/public_html/lottery.php on line 108 Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in /home/streets1/public_html/lottery.php on line 111
  23. i need a bit of help with this im trying to upload these SQLs ALTER TABLE `users` ADD `mayfair` int(11) NOT NULL default '0'; ALTER TABLE `users` ADD `richmond` int(11) NOT NULL default '0'; ALTER TABLE `users` ADD `sterling` int(11) NOT NULL default '0'; ALTER TABLE `users` ADD `superkings` int(11) NOT NULL default '0'; ALTER TABLE `users` ADD `dollups` int(11) NOT NULL default '0'; ALTER TABLE `users` ADD `smoking` int(11) NOT NULL default '0';   and it keeps saying #1146 - Table 'streets1_imaxhome.users' doesn't exist can sommone help me with this
  24. yes it sounds good but if you could put the into groups like money packs into a link then crystel packs into a different link all behind donate here etc if you did all that you could prob sell the mod
  25. how do i decrupt that password its something like this go48fgfeiug89gfh37n so do i get that to be there real password
×
×
  • Create New...