Jump to content
MakeWebGames

Blackdogg

Members
  • Posts

    85
  • Joined

  • Last visited

    Never

Everything posted by Blackdogg

  1. Hi i was wondering if anyone had he mysql for the battle tent as i foolishlyleft my kids on the pc and i hadnt shut phpmyadmin now mybattle tent dont work as they have deleted the mysql for it here is the querry error im getting thanks in advance Bd
  2. Re: Request Little Forum Addon something like this Forums (27) Ive been trying to do that too lol but ot getting anywhere
  3. Re: [mccode] Voting token exchange Thats what it looks like the problem im having is that when i use a "vote token" it takes 1 off every user
  4. Re: [mccode] Voting token exchange Ok lets get back to MY MOD :evil: and help mefix MINE lol <?php /** * @author Blackdogg * @copyright 2008 */ include("globals.php"); if(!$_GET['spend']) { echo ' Welcome To The Token Exchange [i]This token exchange is for all that vote for '.$set['game_name'].'and theres extra specials for donators[/i] <table border="1"> <tr> <th>Special</th> <th>Cost</th> <th>Buy</th> </tr> <tr> <td>Full Health</td> <td>2 Tokens</td> <td>[url="?spend=1"]Buy[/url]</td> </tr> <tr> <td>Full Energy</td> <td>5 Tokens</td> <td>[url="?spend=2"]Buy[/url]</td> </tr> <tr> <td>Full Brave</td> <td>5 tokens</td> <td>[url="?spend=3"]Buy[/url]</td> </tr> <tr> <td>Full Power</td> <td>5 Tokens</td> <td>[url="?spend=4"]Buy[/url]</td> </tr> <tr> <td>$1000</td> <td>8 Tokens</td> <td>[url="?spend=5"]Buy[/url]</td> </tr> <tr> <td>donators</td> <td>Items</td> </tr> <tr> <td>Will Boost</td> <td>25 Tokens</td> <td>[url="?spend=6"]Buy[/url]</td> </tr> </table>'; } else if($_GET['spend'] ==1) { if($ir['votetokens'] <2) { echo 'Sorry you dont have enough Tokens'; } else if($ir['health'] == $ir['maxhealth']) { print "You already have full Health."; } $db->query("UPDATE users SET health=maxhealth, votetokens=votetokens-2"); } else if($_GET['spend'] == 2) { if($ir['votetokens'] < 5) { echo 'Sorry you dont have enough Tokens'; } else if($ir['energy'] == $ir['maxenergy']) { print "You already have full energy."; } $db->query("UPDATE users SET energy=maxenergy, votetokens=votetokens-5"); } else if($_GET['spend'] == 3) { if($ir['votetokens'] < 5) { echo 'Sorry you dont have enough Tokens'; } else if($ir['brave'] == $ir['maxbrave']) { print "You already have full brave."; } $db->query("UPDATE users SET brave=maxbrave, votetokens=votetokens-5"); } else if($_GET['spend'] == 4) { if($ir['votetokens'] < 5) { echo 'Sorry you dont have enough Tokens'; } else if($ir['power'] == $ir['maxpower']) { print "You already have full power."; } $db->query("UPDATE users SET power=max_power, votetokens=votetokens-5"); } else if($_GET['spend'] == 5) { if($ir['votetokens'] < 8) { echo 'Sorry you dont have enough Tokens'; } $db->query("UPDATE users SET money=money+1000, votetokens=votetokens-8"); print "You Gain $1000."; } else if($_GET['spend'] =6) if($ir['donatordays'] == 0) { die("This feature is for donators only."); } { if($ir['votetokens'] <25) { echo 'Sorry you dont have enough Tokens'; } else if($ir['will'] == $ir['maxwill']) { print "You already have full Will."; } $db->query("UPDATE users SET will=will+15, votetokens=votetokens-25"); } $h->endpage(); ?>
  5. Re: [mccode] Voting token exchange   Where is the paid mod I created this one and posted it for help to fix the errors. Also if this was a paid mod (which its not) id feal sorry for the people whod buy as its not working lol   also if it was your paidmod(which its not) you say in your mail to me that your mods are encrypted??
  6. Re: Help with flash chat v474 Yeah Im not that uselless lol ive sorted it now instead of users having to register with the chat site (which was where the problem was) its now intergrated into the game userlist :-D
  7. Re: Help with flash chat v474 Anyway back to the original topic this is the error that i get when flashchat is installed QUERY ERROR: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '' at line 1 Query was SELECT u.*,us.*,h.* FROM users u LEFT JOIN userstats us ON u.userid=us.userid LEFT JOIN houses h ON h.hWILL=u.maxwill WHERE u.userid=
  8. Re: Help with flash chat v474 Lol i have pjirc uploaded to my server but for the liife of me cant figure out how to get that working :P
  9. Re: Help with flash chat v474 Yeah im using xat at the moment but i really like the look of flash chat v474 so iwas wondering if anyone else had used it and any problems they encountered
  10. Re: [mccodes v2] Gang Bomb [$15.00] pm sent :mrgreen:
  11. Hi i was wondering if anyone had any advice on using flash chat on an mccode v2 game i folllow all the instructions and it installs fine and works brilliantly that bad thing is that it stops my game from working and i get a query error any help would gratefully be apreciated
  12. Re: Organised Crimes problem you want to change the gangupdate statement to somethiing like $db->query("UPDATE gangs SET gangRESPECT=gangRESPECT+2,gangMONEY=gangMONEY+$muny,gangCRIME=0 WHERE gangID={$r['gangID']}");
  13. Re: [mccode v2] User Comments Great mod mate my users love it but is there a delete function
  14. Re: [mccode] Buy A House With Level Requirements ! The original mod still isnt working for me anyone got any ideas
  15. Re: [mccode] Buy A House With Level Requirements ! i love the idea but its just not working for me :( Also can you do the same kind of thing with weapons??
  16. I was just wondering if anyone could give me any pointers on making an item that when you use it you would get several different items Cheers Blackdogg
  17. Re: [mccode] Battle Arena [$20] Well heres a screenshot of said mod on my game
  18. Re: [mccode] Battle Arena [$20] Great mod but it says theres 3 atack modes and only 2 are listed. Trivial i know but all my users question it lol
  19. Re: Mccodes 1 and 2 - Invade house script   <?php session_start(); if (file_exists('globals.php')) { require('. /globals.php'); } include "global_func.php"; require "mysql.php"; if($ir['energy'] < 10) { die("You need at least 10 energy to invade a home. You only have {$ir['energy']} energy. "); } if($ir['jail']) { die("You cannot invade a House while in jail."); } if($ir['hospital']) { die("You cannot invade a House while in hospital."); } if($_GET['ID'] == $userid) { die("You idiot, you own your house!"); } $_GET['ID']=abs((int) $_GET['ID']); $r=$db->fetch_row($db->query("SELECT * FROM users WHERE userid={$_GET['ID']}")); if(!$r['userid']) { die("Sorry, this user does not exist."); } $mult=$r['level']*$r['level']; $chance=min(($ir['crimexp']/$mult)*50+1, 95); if(rand(1,100) < $chance) { $gain=$r['level']*5; print "You successfully invaded {$r['username']} Home, and gained some experience! > [url='jail.php']Back[/url]"; $db->query("UPDATE users SET crimexp=crimexp+{$gain} WHERE userid=$userid"); $db->query("UPDATE users SET jail=0 WHERE userid={$r['userid']}"); event_add($r['userid'], "[url='viewuser.php?u={$ir[']{$ir['username']}[/url] invaded your house! Click [url='invade.php?ID={$userid}']here[/url] To do the same thing to them. ", $c); } else { print "When you were knocking down {$r['username']}'s house you were caught by a police officer and taken to jail. > [url='jail.php']Go to Jail[/url]"; $time=min($mult, 40); $db->query("UPDATE users SET jail=$time, jail_reason='Caught trying to invade the Home of {$r['username']}' WHERE userid=$userid"); event_add($r['userid'], "[url='viewuser.php?u={$ir[']{$ir['username']}[/url] was arrested trying to invade your home.", $c); } $h->endpage(); ?>   You were also missing a < from the start of the script
  20. Re: Voting token exchange   Thanks mate i`ll give it a try
  21. Re: Build Car {v2} and {v1}   i think what they mean is surely it should be spend=1 spend=2 spend=3 and so on
  22. Re: V2 Updated From Snikos' Pollution Mod :D i havent been born yet im writing this by telepathy :mrgreen:
  23. Re: Voting token exchange i dont know if there is a paid version but ive made this one myself lol
  24. Ok i know this is probably quite simple for most of you but this is my first attempt at making a mod the problem i have is that the reward is being given even when it says you dont have enough tokens thanks in advance Blackdogg <?php /** * @author Blackdogg * @copyright 2008 */ include("globals.php"); if(!$_GET['spend']) { echo ' Welcome To The Token Exchange [i]This token exchange is for all that vote for '.$set['game_name'].'and theres extra specials for donators[/i] <table border="1"> <tr> <th>Special</th> <th>Cost</th> <th>Buy</th> </tr> <tr> <td>Full Health</td> <td>2 Tokens</td> <td>[url="?spend=1"]Buy[/url]</td> </tr> <tr> <td>Full Energy</td> <td>5 Tokens</td> <td>[url="?spend=2"]Buy[/url]</td> </tr> <tr> <td>Full Brave</td> <td>5 tokens</td> <td>[url="?spend=3"]Buy[/url]</td> </tr> <tr> <td>Full Power</td> <td>5 Tokens</td> <td>[url="?spend=4"]Buy[/url]</td> </tr> <tr> <td>$1000</td> <td>8 Tokens</td> <td>[url="?spend=5"]Buy[/url]</td> </tr> <tr> <td>donators</td> <td>Items</td> </tr> <tr> <td>Will Boost</td> <td>25 Tokens</td> <td>[url="?spend=6"]Buy[/url]</td> </tr> </table>'; } else if($_GET['spend'] ==1) { if($ir['votetokens'] <2) { echo 'Sorry you dont have enough Tokens'; } else if($ir['health'] == $ir['maxhealth']) { print "You already have full Health."; } $db->query("UPDATE users SET health=maxhealth, votetokens=votetokens-2"); } else if($_GET['spend'] == 2) { if($ir['votetokens'] < 5) { echo 'Sorry you dont have enough Tokens'; } else if($ir['energy'] == $ir['maxenergy']) { print "You already have full energy."; } $db->query("UPDATE users SET energy=maxenergy, votetokens=votetokens-5"); } else if($_GET['spend'] == 3) { if($ir['votetokens'] < 5) { echo 'Sorry you dont have enough Tokens'; } else if($ir['brave'] == $ir['maxbrave']) { print "You already have full brave."; } $db->query("UPDATE users SET brave=maxbrave, votetokens=votetokens-5"); } else if($_GET['spend'] == 4) { if($ir['votetokens'] < 5) { echo 'Sorry you dont have enough Tokens'; } else if($ir['power'] == $ir['maxpower']) { print "You already have full power."; } $db->query("UPDATE users SET power=max_power, votetokens=votetokens-5"); } else if($_GET['spend'] == 5) { if($ir['votetokens'] < 8) { echo 'Sorry you dont have enough Tokens'; } $db->query("UPDATE users SET money=money+1000, votetokens=votetokens-8"); print "You Gain $1000."; } else if($_GET['spend'] =6) if($ir['donatordays'] == 0) { die("This feature is for donators only."); } { if($ir['votetokens'] <25) { echo 'Sorry you dont have enough Tokens'; } else if($ir['will'] == $ir['maxwill']) { print "You already have full Will."; } $db->query("UPDATE users SET will=will+15, votetokens=votetokens-25"); } $h->endpage(); ?>
  25. Re: New improved mailbox. do you still have the pics of the smilies as thte rapidshare linkisno longer valid :(
×
×
  • Create New...