Jump to content
MakeWebGames

tobatz

Members
  • Posts

    9
  • Joined

  • Last visited

    Never

Everything posted by tobatz

  1. Re: Dreaming Out Loud here's the code you're looking. It's not tested but i think it will work..   $exploreimage=array( 1=>'[img=../location1.jpg] ', 2=>'[img=../location2.jpg] ', /*src = location of your jpeg file */ 3=>'[img=../location3.jpg] ', 4=>'[img=../location4.jpg] ', 5=>'[img=../location5.jpg] ', 6=>'[img=../location6.jpg] ' /*the number of array elements you have should be equal to the number of location in your game */ ); $key=$ir['location']; print "<center>".$exploreimage[$key]."</center>";
  2. Re: [mccode v2] Yet Another Attack   try replacing fetch_assoc to fetch_row
  3. Re: [mccode] Advanced Warning System   The mysql query on {w.user=? ORDER...} has no value. Check the variable assigned to the query. <- {$_GET['user']}
  4. Re: [V2] New Small Accuracy Mod [V2]   $acc= $ir['totalhits'] / ($ir['totalhits']+$ir['totalmisses']) *100   i got an error off: Parse error: syntax error, unexpected '}' in /home/darkstr1/public_html/index.php on line 8 you need to put a ; after $acc= $ir['totalhits'] / ($ir['totalhits']+$ir['totalmisses']) *100;
  5. Re: [V2] New Small Accuracy Mod [V2]   $acc= $ir['totalhits'] / ($ir['totalhits']+$ir['totalmisses']) *100
  6. Re: [V2] New Small Accuracy Mod [V2] ok.. let me just correct the previous formula i posted. It should be.. $acc= $ir['totalhits'] / ($ir['totalhits']+$ir['totalmisses']) *100 let's try using real numbers. totalhits= 50 totalmiss= 50 Just by looking at the numbers. I'd say my accuracy would be 50%, right? :roll: Using your formula 50 / 50 * 100 = 100%. :-D
  7. Re: [mccode v2] Item needed to perform crime. try this... if ($r['crimeITEM'] > 0 && $n['inv_itemid'] != $r['crimeITEM']) :wink:
  8. Re: [V2] New Small Accuracy Mod [V2]   $acc=($ir['totalhits'])/($ir['totalmisses'])*100;   wrong formula :-) it should be... $acc= ($ir['totalhits']+$ir['totalmisses']) / $ir['totalhits'] *100
  9. Re: [mccode V2] Bank Investment   $result = $db->query("SELECT * FROM `investment` WHERE `user` = '".$userid."' AND `time` > '".time()."' AND `collected` = '0'");   -i think you need to change 'collected'='0' to 'collected'='1' . The above condition will always returns "false" even if you have already invested. -the amount of money you invest doesn't subtract from the total money you have. nice mod though... :wink:
×
×
  • Create New...