Jump to content

Butch_ben

Members
  • Posts

    4
  • Joined

  • Last visited

Everything posted by Butch_ben

  1. no worriessorted that outbut the code isnt doing the job :Sit doesnt add the money from the success to the users money
  2. hmm still got a parse error on lone 266 which is just a single } O.o
  3. 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
  4. Butch_ben

    PHP codeing help

    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...