Jump to content

dprayer

Members
  • Posts

    14
  • Joined

  • Last visited

    Never

Profile Information

  • Gender
    Not Telling

dprayer's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. dprayer

    Help

    [!--quoteo(post=381783:date=Jun 9 2006, 11:08 AM:name=joquius)--][div class=\'quotetop\']QUOTE(joquius @ Jun 9 2006, 11:08 AM) [snapback]381783[/snapback][/div][div class=\'quotemain\'][!--quotec--] Hi, new, but not new to php just looking for something to do at work in free time when my strength for coding has run out. Are $grab and $location actually defined here as $HTTP_GET_VARS ? if (isset ($_GET['grab'])) $grab = $_GET['grab']; same for location. In any case you should clean up the code a bit maybe cut out some excess variables and add some spaces it's slightly unclear [/quote] he he.. i can imagine me trying to clean it up.. Im not great with php and scripts.. i know ill end updeleting bits and it wont work again..lol If you have MSN add me please : rayer_gangland@hotmail.co.uk Thanks
  2. dprayer

    Help

    Hi all I cant get a grab part of my website to work.. Basically, when you go to this part of the site you can press the grab button and you take over the object which you have pressed grab on. This part of the script is the grab part for an airport : elseif ($grab == "Airport"){ $check = mysql_query("SELECT * FROM airport WHERE owner= '0' AND location='$fetch->location'"); $num_rows = mysql_num_rows($check); if ($num_rows != "0"){ if ($fetch->location == $location){ mysql_query("UPDATE airport SET owner='$username', profit='0-0-0-0-0-0' WHERE location='$fetch->location'"); echo "You got the Airport!"; }}} Here is the php script for that partof the site wich includes the grab: <?php if ($airport->owner == ""){ echo "No owner-<a href='?grab=airport&location=$locations[$i]'>Grab it </a>"; }else{ echo "<a href='profile.php?viewuser=$airport->owner'>$airport->owner</a>"; } ?> Thanks if you can help me out in any way
  3. [!--quoteo(post=381299:date=Jun 8 2006, 09:39 AM:name=ToonMariner)--][div class=\'quotetop\']QUOTE(ToonMariner @ Jun 8 2006, 09:39 AM) [snapback]381299[/snapback][/div][div class=\'quotemain\'][!--quotec--] the code we would need to see is in the php file that processes these requests. When you say it has been disabled for those elements then there could well be a simple switch [/quote] i have managed to get it on the website now.. but the grab it doesn't work to take it over. if anyone has msn it would make it so much easier.. rayer_gangland@hotmail.co.uk
  4. <td height="10" valign="top">Airport</td> <td width="184"> <?php if ($airport->owner == "0"){ echo "No owner-<a href='?grab=Airport&location=$locations[$i]'>Grab it</a>"; }else{ echo "<a href='profile.php?viewuser=$airport->owner'>$airport->owner</a>"; } ?> </td> <td width="233"><!--DWLayoutEmptyCell-->&nbsp;</td> </tr> <tr> there is the script. the guy i bought the scripts from is on holiday. and i thought this was a help forum instead questioning why someone does something? (sorry if it sounds harsh)
  5. Hi All In my online mafia game, i have a countrys section where you can take over a casino or bank etc,etc. In my scripts it says as a php script you are able to grab it but its not working on the game. Is there something i need to type in to activate it or is there something on mysql i need to change to activate it. It has been disabled for Bank, Bulletfactory, All Casinos and airport. Its just as if there is a switch i need to press for it to work..lol Thanks
  6. [!--quoteo(post=381083:date=Jun 7 2006, 06:53 PM:name=SharkBait)--][div class=\'quotetop\']QUOTE(SharkBait @ Jun 7 2006, 06:53 PM) [snapback]381083[/snapback][/div][div class=\'quotemain\'][!--quotec--] Where is the begining If statement? [/quote] do you have msn then i can give you the script that way to make it easier
  7. [!--quoteo(post=381077:date=Jun 7 2006, 06:36 PM:name=kenrbnsn)--][div class=\'quotetop\']QUOTE(kenrbnsn @ Jun 7 2006, 06:36 PM) [snapback]381077[/snapback][/div][div class=\'quotemain\'][!--quotec--] Please post at least the preceding 10 to 20 lines. This error is saying that PHP didn't expect to see the "}" at the start of the line. Without seeing the preceding lines, there is no way to tell what may have caused the error. Ken [/quote] ?> <html> <head> <title>Untitled Document</title> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> <style type="text/css"> <!-- body,td,th { color: #FFFFFF; } body { background-color: #000000; } a:link { color: #FFFFFF; } a:visited { color: #FFFFFF; } a:hover { color: #FF0000; } .style1 {color: #000000} --> </style></head> <body></body> </html> <?php }elseif (strip_tags($_GET['op']) == "war"){ if (strip_tags($_POST['warning_username']) && strip_tags($_POST['warning_msg'])){ $warning_username=strip_tags($_POST['warning_username']); $warning_msg=strip_tags($_POST['warning_msg']); $check=mysql_num_rows(mysql_query("SELECT * FROM users WHERE username='$warning_username'")); if ($check =="0"){ echo "No such user!"; }elseif($check !="0"){ mysql_query("INSERT INTO `inbox` ( `id` , `to` , `from` , `message` , `date` , `read` , `saved` , `event_id` ) VALUES ( '', '$warning_username', '$warning_username', '$warning_msg You Have BEEN warned!', '$date', '0', '0', '0' )"); echo "Warning Issued"; }} ?>
  8. Hi All I have the following error showing in my website : Parse error: syntax error, unexpected '}' in /content/StartupHostPlus/m/a/mafia-don.co.uk/web/mods/MODcP.php on line 412 on line 412 i have 412 }elseif (strip_tags($_GET['op']) == "war"){ 413 if (strip_tags($_POST['warning_username']) && strip_tags($_POST ['warning_msg'])){ That is line 412 and 413.. Does anyone know why i am getting the error. Thanks
  9. [!--quoteo(post=381026:date=Jun 7 2006, 04:21 PM:name=drayer)--][div class=\'quotetop\']QUOTE(drayer @ Jun 7 2006, 04:21 PM) [snapback]381026[/snapback][/div][div class=\'quotemain\'][!--quotec--] im not too great with php.. what do you mean add the query.. i bought this script, but never realised there were errors in some of it. Thanks [/quote] i done it :)
  10. [!--quoteo(post=381024:date=Jun 7 2006, 04:16 PM:name=redarrow)--][div class=\'quotetop\']QUOTE(redarrow @ Jun 7 2006, 04:16 PM) [snapback]381024[/snapback][/div][div class=\'quotemain\'][!--quotec--] Add the query before this block ok. [/quote] im not too great with php.. what do you mean add the query.. i bought this script, but never realised there were errors in some of it. Thanks
  11. [!--quoteo(post=381022:date=Jun 7 2006, 04:12 PM:name=redarrow)--][div class=\'quotetop\']QUOTE(redarrow @ Jun 7 2006, 04:12 PM) [snapback]381022[/snapback][/div][div class=\'quotemain\'][!--quotec--] post this block of code page stats.php line 63 [/quote] $percent_tops=round($totaltopics / $nums, 2); echo "($percent_tops Per user)";
  12. [!--quoteo(post=381008:date=Jun 7 2006, 03:50 PM:name=redarrow)--][div class=\'quotetop\']QUOTE(redarrow @ Jun 7 2006, 03:50 PM) [snapback]381008[/snapback][/div][div class=\'quotemain\'][!--quotec--] post your problam of the code that is wrong example error line number or use the freelance room. [/quote] This is what is on the website Total forum topics 0 Topics Warning: Division by zero in /content/StartupHostPlus/m/a/mafia-don.co.uk/web/stats.php on line 63
  13. Hi All Would anyone help meout free of charge, i have a online mafia game which the majority is working, i just have a few problems with some scripts. I can either post the scripts on here or you can add me on MSN rayer_gangland@hotmail.co.uk If you want me to post on here let me know. Thanks
  14. Hi All I have an online text based game,i bought the scripts which were supposed to be working :( i only have a few errors from what i can see, but i cannot fix them. I dont want anyone to fix them for me as i really want to learn how to do it, but if anyone can talk me through the errors and show me how to repair them so i can learn myself and understand what i am looking at it would be superb.. If anyone has MSN and can help me because it would be easier to communicate please add me rayer_gangland@hotmail.co.uk Thanks
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.