
Poldar
Members-
Posts
85 -
Joined
-
Last visited
Never
Content Type
Profiles
Forums
Events
Everything posted by Poldar
-
Hey all..I just made my first modification..but I dont know if it is right.. So if you could help me out..and point out some big mistakes.. Dont be to harsh please.I just started getting into PHP like a week ago.. Thanks much Mod is supposed to do a little pop ip box... and ad $1 to the users money <html> <head> <script type="text/javascript"> function disp_alert() { alert("Hello!"); } </script> <head> <body> <?php include "globals.php" $d=date("D"); if ($d=="Thurs") { echo "Go away... "; echo "Continue playing..and invite your friends!"; } { $db_>query("UPDATE user SET money WHERE money==+1"); } <input action="button" onclick="disp_alert()" value="Click here!!!" /> ?php> </body> </html> Thanks much
-
Re: Bar23 [V2] Converted to v1..Should work <?php /* Bar23 Mod Made By Karlos Made For Mccode V2 Date Made: 20 - Sep - 2008 Fixed Up By Kyle */ require "global_func.php"; if($_SESSION['loggedin']==0) { header("Location: login.php");exit; } $userid=$_SESSION['userid']; require "header.php"; $h = new headers; $h->startheaders();; if(!$_GET['spend']) { echo ' Welcome To The Famous Bar23 [i]Bar23 Was Established In 2008 For The Needy Population Of '.$set['game_name'].'[/i] [i]These Are Not Items, These Add On To Your Bars Sratight Away.[/i] [b]Lunches[/b] <table border="1"> <tr> <th>Lunch</th> <th>Cost</th> <th>Buy</th> </tr> <tr> <td>Curry</td> <td>$250</td> <td>[url="?spend=1"]Buy[/url]</td> </tr> <tr> <td>Fish</td> <td>$400</td> <td>[url="?spend=2"]Buy[/url]</td> </tr> <tr> <td>Pizza</td> <td>$700</td> <td>[url="?spend=3"]Buy[/url]</td> </tr> <tr> <td>Roast Dinner</td> <td>$1000</td> <td>[url="?spend=4"]Buy[/url]</td> </tr> <tr> <td>Salad</td> <td>$1500</td> <td>[url="?spend=5"]Buy[/url]</td> </tr> <table> [b]Alcohol[/b] <table border="1"> <tr> <th>Lunch</th> <th>Cost</th> <th>Buy</th> </tr> <tr> <td>Carlsberg</td> <td>$250</td> <td>[url="?spend=6"]Buy[/url]</td> </tr> <tr> <td>Jack Daniels</td> <td>$400</td> <td>[url="?spend=7"]Buy[/url]</td> </tr> <tr> <td>Moonshine</td> <td>$700</td> <td>[url="?spend=8"]Buy[/url]</td> </tr> <tr> <td>Southern Comfort</td> <td>$1000</td> <td>[url="?spend=9"]Buy[/url]</td> </tr> <tr> <td>Vodka</td> <td>$1500</td> <td>[url="?spend=10"]Buy[/url]</td> </tr> </table>'; } else if($_GET['spend'] == 1) { if($ir['money'] < 249) { echo 'You don\'t have enough money to buy the Curry, you need $250!'; } else { mysql_("UPDATE users SET money=money-250, energy=energy+3 WHERE userid=%s", $userid); mysql_query($sql); echo 'Congratulations, you bought a Curry for $250! [url="bar23.php"]Back to Shop[/url] '; } } else if($_GET['spend'] == 2) { if($ir['money'] <399) { echo 'You don\'t have enough money to buy the Fish, you need $400!'; } else { mysql_("UPDATE users SET money=money-400, energy=energy+5 WHERE userid=%s", $userid); mysql_query($sql); echo 'Congratulations, you bought a Fish for $400! [url="bar23.php"]Back to Shop[/url] '; } } else if($_GET['spend'] == 3) { if($ir['money'] <699) { echo 'You don\'t have enough money to buy the Pizza, you need $700!'; } else { mysql_("UPDATE users SET money=money-700, energy=energy+10 WHERE userid=%s", $userid); mysql_query($sql); echo 'Congratulations, you bought a Pizza for $700! [url="bar23.php"]Back to Shop[/url] '; } } else if($_GET['spend'] == 4) { if($ir['money'] < 999) { echo 'You don\'t have enough money to buy the Roast Dinner, you need $1000!'; } else { mysql_("UPDATE users SET money=money-1000, energy=energy+13 WHERE userid=%s", $userid); mysql_query($sql); echo 'Congratulations, you bought a Roast Dinner for $1000! [url="bar23.php"]Back to Shop[/url] '; } } else if($_GET['spend'] == 5) { if($ir['money'] < 1499) { echo 'You don\'t have enough money to buy the Salad, you need $1500!'; } else { mysql_("UPDATE users SET money=money-250, energy=energy+18 WHERE userid=%s", $userid); mysql_query($sql); echo 'Congratulations, you bought a Salad for $1500! [url="bar23.php"]Back to Shop[/url] '; } } else if($_GET['spend'] == 6) { if($ir['money'] < 249) { echo 'You don\'t have enough money to buy the Carlsberg, you need $250!'; } else { mysql_("UPDATE users SET money=money-250, brave=brave+3 WHERE userid=%s", $userid); mysql_query($sql); echo 'Congratulations, you bought a Carlsberg for $250! [url="bar23.php"]Back to Shop[/url] '; } } else if($_GET['spend'] == 7) { if($ir['money'] <399) { echo 'You don\'t have enough money to buy the Jack Daniels, you need $400!'; } else { mysql_("UPDATE users SET money=money-400, brave=brave+5 WHERE userid=%s", $userid); mysql_query($sql); echo 'Congratulations, you bought a Jack Daniels for $400! [url="bar23.php"]Back to Shop[/url] '; } } else if($_GET['spend'] == 8) { if($ir['money'] <699) { echo 'You don\'t have enough money to buy the Moonshine, you need $700!'; } else { mysql_("UPDATE users SET money=money-700, brave=brave+10 WHERE userid=%s", $userid); mysql_query($sql); echo 'Congratulations, you bought a Moonshine for $700! [url="bar23.php"]Back to Shop[/url] '; } } else if($_GET['spend'] == 9) { if($ir['money'] < 999) { echo 'You don\'t have enough money to buy the Southern Comfort, you need $1000!'; } else { mysql_("UPDATE users SET money=money-1000, brave=brave+13 WHERE userid=%s", $userid); mysql_query($sql); echo 'Congratulations, you bought a Southern Comfort for $1000! [url="bar23.php"]Back to Shop[/url] '; } } else if($_GET['spend'] == 10) { if($ir['money'] < 1499) { echo 'You don\'t have enough money to buy the Vodka, you need $1500!'; } else { mysql_("UPDATE users SET money=money-250, brave=brave+18 WHERE userid=%s", $userid); mysql_query($sql); echo 'Congratulations, you bought a Vodka for $1500! [url="bar23.php"]Back to Shop[/url] '; } } $h->endpage(); ?> Let me know if it works..if not it isnt my mistake..
-
Re: MCcode game mods If we have to pay for these mods, how come it is in the Free Modification part of the forum?? :? :? :? :? :? :? :? :? :? :? :? :? :?
-
Re: NEW V2 LOGIN PAGE Dont mean to be rude, but this is a sucky login page
-
mccode-v2 8 Lines to secure your site from known sql injections.
Poldar replied to Haunted Dawg's topic in Free Modifications
Re: 8 Lines to secure your site from known sql injections. Where in the script to we put it? -
Re: [FREE][V2] Club Mod (my version) The mod looks pretty frigin sweet..nice job..hope to see more
-
Re: [V2] Youtube Mod [V2] A cool mod for this mod would be money for each view that is viewed on a certain users movie..make like a Video Credit and they can spend the credits.. or something the same as the sort... That would be an awesome mod...something possibly worth paying for...
-
Re: How do I???!?!?! Thanks much man!
-
How do I change the colors and themes??? Which files do I change...??
-
Re: Login Pages/Other Questions..? I do know HTML, from top to bottom...I am learning Javascript, and then the next project is PHP...
-
Re: Problem How would you fix it...with out having to insert...?
-
Hey...I was wondering how were are to make, or re-organize login pages...I would really like to learn how to do this..to make a unique feel of a game that I am currently working on at the moment....simple things really, but how would we re-organize a login page? Also, I would like to know how you would put in a picture ad, every time I tried putting one in there happened to be a mysql syntax error... Could dome on give me some insight on these problems?
-
Re: Need Help I made one for my RPG I plan on making
-
Re: Need Help Like I said, I am only 17, and I really cannot pay for this. So is there like any work out there I could do? Something simple and easy to gain a first 5 bucks to pay for a months server, and maybe a bit more work?
-
Re: I need HELP and Willing to Pay I fixed the problem thanks all
-
Re: Basic Stock Market [V2] I don't mean to be mean or anything, but when will the script be bug free?
-
[mccode] Instant Messenger for Your Game! [$50.00]
Poldar replied to Poldar's topic in Paid Modifications
Re: Instant Messenger for Your Game! Yes, but I coded my IM so that you can customize it with your game preferences. Simple and easy, an instruction manual. No game has this..yet. And I will be posting some screen shots here soon. -
[mccode] Instant Messenger for Your Game! [$50.00]
Poldar replied to Poldar's topic in Paid Modifications
Re: Instant Messenger for Your Game! Thanks for the advice Akashs, I will do so. And for all who think that I am a rip off person, I am sorry you feel that way. I worked pretty hard on this, and I understand some of you guys wont buy it as it is not perfectly secure. I will make a game, which implements my IM. And no sir, there is not a single IM script out there that is free. Please point me in that direction if there is. Sorry if I had cause any disturbances or anything. I will bring up some screen shots, and ect when I have time. Thanks all for viewing. -
Re: New Crime Page [V2] It works great! I added it to my game, and thanks for the sweet mod!
-
[mccode] Instant Messenger for Your Game! [$50.00]
Poldar replied to Poldar's topic in Paid Modifications
Re: Instant Messenger for Your Game! Screenies aren't really available because it all depends on the style of your game. You could make it a social one with different colors, and anything. Truly is only a Instant Messenger. But can be tied with the users of your game. Simple and easy to set up. Like I said screenies aren't really available. And this IM is truly a un-neccessary luxury. But it is a luxury in itself. Still on sale for $50. Please add me at [email protected] -
Hello all. I have been working on this project for a while now, and I didnt really expect to make this for games but then I thought I would try to make some money off of my work. The package would include: All PHP, HTML, C++ scripts you would need to set up the instant messenger. Comes with 14 files in all. All files are customizable to make it your own. Instructions on how to set up your instant messenger. Now there is a flaw for the instant messenger..the messages aren't that secure, and neither are the file transfers. Now if you are interested, please pm me, or you can IM me at [email protected] I use the MSN instant messenger. The package costs $50.00 USD. Thanks much. PS: Users of your game do NOT need to have an email address with your game. Only a screen name.