Jump to content

Butch_ben

Members
  • Posts

    4
  • Joined

  • Last visited

Posts posted by Butch_ben

  1. Hi,To add 2 numbers..(if thats what you are looking for)I guess when you said "succeed in the crime" is true when $result is true if ($result == "true"){$total = $gold + $crime1;$points = $points + $total}

    hmm still got a parse error on lone 266 which is just a single } O.o
  2. hiim creating an online mafia game using php and mysql and im not sure how to perform this code

    <?$username = $_SESSION["username"];$query_general ="SELECT * FROM users WHERE username ='$username'";$object_general = mysql_fetch_object(mysql_query($query_general));$points=$object_general->points;if($_POST[crime] == 1 && $points >= '0'){echo"<center> Success! <br> You set up your stool and went un noticed for the whole day. <br> You earned a nice sum of £ $crime1 </center>";}else{ echo"<center> Failure! <br> If you cant do that crime you might as well suicide now</center>";} if ($result == 'true' "$gold"+"$crime1") ?>

    the error is

     if ($result == 'true' "$gold"+"$crime1")

    i need the code to add money ($crime1) to the money on their user area ($gold) if they succeed in the crime and also add points to their user ($points)can somebody please help me with this? i can elaberate more if neededthanks

  3. hello thereim currently making an online text based mafia game but im not very good at php but can do basic things, so i was woundering if you could help me with some of the codeing that needs doing.any help with codes would be greatly appriciated so contact me and i will give you more details on help i needthanks

×
×
  • Create New...