Jump to content

Day Walker

Members
  • Posts

    13
  • Joined

  • Last visited

    Never

Contact Methods

  • MSN
    admin@bloodshedd.com

Profile Information

  • Gender
    Male
  • Location
    Benton,PA (U.S.A.)

Day Walker's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. ok thanks...i'll try that
  2. my site is in php...will frames work? before i go there and read all that stuff...lol
  3. how would i do that?...i've never used frames...or is it to complex to get into here?
  4. i can get the tunes to play no problem using thisin the tpl file...thing is it restarts everytime you change the page...there has to be a way to make it play with out restarting [code]<embed src="mytunes.mp3" autostart="true" hidden="true" loop="0"> <bgsound src="mytunes.mp3" loop="infinite">[/code]
  5. ok i know there has to be a way....i want to add sound to my php website...i can do that no problem in the tpl files...however when you change the page it restarts the tunes...is there a way to add a script somewhere so that once you enter the site the tunes play and loop forever till you exit the stie?
  6. oh well...thanks for trying...happy new year everyone
  7. ok...everything ran great till i added from here down (} //To here was original...i added following and will set values later...but now i get the error...what did i do wrong?) in the big chunck i posted...i dont think i added it correctly...db is correct...blah...
  8. line 374==>// End Ship Score loop Fatal error: Call to a member function on a non-object in /home/bloodshe/public_html/BLOODSHEDDdev/global_funcs.php on line 374 sorry forgot this
  9. lines 366 thru 380 /* while (!$res2->EOF) { $row2 = $res2->fields; $score += $row2['score2']; $res2->MoveNext(); } // End Ship Score loop   $debug_query = $db->Execute("SELECT credits FROM $dbtables[players] where player_id = $sid"); db_op_result($debug_query,__LINE__,__FILE__); if ($debug_query) { $row = $debug_query->fields; $score += $row['credits']; } */
  10. the error i get is :Fatal error: Call to a member function on a non-object in /home/bloodshe/public_html/BLOODSHEDDdev/global_funcs.php on line 374 however this error never happened till after i added this: starting @ line(513) new block quoted... /* $torps = 90; $fighters = 100; $armor = 150; $energy = 200; $spy = 300; $wormhole = 350; $sg = 500; $nova = 550; $torps_trigger = floor($torps / 2); $fighters_trigger = floor($fighters / 2); $armor_trigger = floor($armor / 2); $energy_trigger = floor($energy / 2); $spy_trigger = floor($spy / 2); $wormhole_trigger = floor($wormhole / 2); $sg_trigger = floor($sg_torp / 2); $nova_trigger = floor($nova / 2); $flag = 1; $amount = round($credits * (mt_rand(($deathlostpercent / 2), $deathlostpercent) / 100)); $debug_query = $db->Execute("UPDATE $dbtables[players] SET credits=credits-$amount WHERE player_id=$player_id"); db_op_result($debug_query,__LINE__,__FILE__); $debris_type = 14; $debris_data = $amount; $findem = $db->Execute("SELECT sector_id FROM $dbtables[universe]"); $totrecs=$findem->RecordCount(); $getit=$findem->GetArray(); $randplay=mt_rand(0,($totrecs-1)); $targetlink = $getit[$randplay]['sector_id']; $debug_query = $db->Execute("INSERT INTO $dbtables[debris] (debris_type, debris_data, sector_id) values ($debris_type,'$debris_data', $targetlink)"); db_op_result($debug_query,__LINE__,__FILE__); $success = mt_rand(0, $torps); if ($success == $torps_trigger && $flag) { $debris_type = 2; $debris_data = 1; if(mt_rand(0, 1) == 1) $debris_data = -1 * $debris_data; $flag = 0; } $success = mt_rand(0, $fighters); if ($success == $fighters_trigger && $flag) { $debris_type = 3; $debris_data = 1; if(mt_rand(0, 1) == 1) $debris_data = -1 * $debris_data; $flag = 0; } $success = mt_rand(0, $armor); if ($success == $armor_trigger && $flag) { $debris_type = 4; $debris_data = 1; if(mt_rand(0, 1) == 1) $debris_data = -1 * $debris_data; $flag = 0; } $success = mt_rand(0, $energy); if ($success == $energy_trigger && $flag) { $debris_type = 5; $debris_data = 1; if(mt_rand(0, 1) == 1) $debris_data = -1 * $debris_data; $flag = 0; } $success = mt_rand(0, $spy); if ($success == $spy_trigger && $flag) { $debris_type = 7; $debris_data = 1; if(mt_rand(0, 1) == 1) $debris_data = -1 * $debris_data; $flag = 0; } $success = mt_rand(0, $wormhole); if ($success == $wormhole_trigger && $flag) { $debris_type = 8; $debris_data = 1; $flag = 0; } $success = mt_rand(0, $sg); if ($success == $sg_trigger && $flag) { $debris_type = 11; $debris_data = 1; if(mt_rand(0, 1) == 1) $debris_data = -1 * $debris_data; $flag = 0; } $success = mt_rand(0, $nova); if ($success == $nova_trigger && $flag) { $debris_type = 12; $debris_data = 1; if(mt_rand(0, 1) == 1) $debris_data = -1 * $debris_data; $flag = 0; } if ($flag) { $debris_type = 0; $debris_data = 0; } $randplay=mt_rand(0,($totrecs-1)); $targetlink = $getit[$randplay]['sector_id']; $debug_query = $db->Execute("INSERT INTO $dbtables[debris] (debris_type, debris_data, sector_id) values ($debris_type,'$debris_data', $targetlink)"); db_op_result($debug_query,__LINE__,__FILE__); } } //To here was original...i added following and will set values later...but now i get the error...what did i do wrong? $torps = 90; $fighters = 100; $armor = 150; $energy = 200; $spy = 300; $wormhole = 350; $sg = 500; $nova = 550; $torps_trigger = floor($torps / 2); $fighters_trigger = floor($fighters / 2); $armor_trigger = floor($armor / 2); $energy_trigger = floor($energy / 2); $spy_trigger = floor($spy / 2); $wormhole_trigger = floor($wormhole / 2); $sg_trigger = floor($sg_torp / 2); $nova_trigger = floor($nova / 2); $flag = 1; $amount = round($credits * (mt_rand(($deathlostpercent / 2), $deathlostpercent) / 100)); $debug_query = $db->Execute("UPDATE $dbtables[players] SET credits=credits-$amount WHERE player_id=$player_id"); db_op_result($debug_query,__LINE__,__FILE__); $asteroids_type = 14; $asteroids_data = $amount; $findem = $db->Execute("SELECT sector_id FROM $dbtables[universe]"); $totrecs=$findem->RecordCount(); $getit=$findem->GetArray(); $randplay=mt_rand(0,($totrecs-1)); $targetlink = $getit[$randplay]['sector_id']; $debug_query = $db->Execute("INSERT INTO $dbtables[asteroids] (asteroids_type, asteroids_data, sector_id) values ($asteroids_type,'$asteroids_data', $targetlink)"); db_op_result($debug_query,__LINE__,__FILE__); $success = mt_rand(0, $torps); if ($success == $torps_trigger && $flag) { $asteroids_type = 2; $asteroids_data = 1; if(mt_rand(0, 1) == 1) $asteroids_data = -1 * $asteroids_data; $flag = 0; } $success = mt_rand(0, $fighters); if ($success == $fighters_trigger && $flag) { $asteroids_type = 3; $asteroids_data = 1; if(mt_rand(0, 1) == 1) $asteroids_data = -1 * $asteroids_data; $flag = 0; } $success = mt_rand(0, $armor); if ($success == $armor_trigger && $flag) { $asteroids_type = 4; $asteroids_data = 1; if(mt_rand(0, 1) == 1) $asteroids_data = -1 * $asteroids_data; $flag = 0; } $success = mt_rand(0, $energy); if ($success == $energy_trigger && $flag) { $asteroids_type = 5; $asteroids_data = 1; if(mt_rand(0, 1) == 1) $asteroids_data = -1 * $asteroids_data; $flag = 0; } $success = mt_rand(0, $spy); if ($success == $spy_trigger && $flag) { $asteroids_type = 7; $asteroids_data = 1; if(mt_rand(0, 1) == 1) $asteroids_data = -1 * $asteroids_data; $flag = 0; } $success = mt_rand(0, $wormhole); if ($success == $wormhole_trigger && $flag) { $asteroids_type = 8; $asteroids_data = 1; $flag = 0; } $success = mt_rand(0, $sg); if ($success == $sg_trigger && $flag) { $asteroids_type = 11; $asteroids_data = 1; if(mt_rand(0, 1) == 1) $asteroids_data = -1 * $asteroids_data; $flag = 0; } $success = mt_rand(0, $nova); if ($success == $nova_trigger && $flag) { $asteroids_type = 12; $asteroids_data = 1; if(mt_rand(0, 1) == 1) $asteroids_data = -1 * $asteroids_data; $flag = 0; } if ($flag) { $asteroids_type = 0; $asteroids_data = 0; } $randplay=mt_rand(0,($totrecs-1)); $targetlink = $getit[$randplay]['sector_id']; $debug_query = $db->Execute("INSERT INTO $dbtables[asteroids] (asteroids_type, asteroids_data, sector_id) values ($asteroids_type,'$asteroids_data', $targetlink)"); db_op_result($debug_query,__LINE__,__FILE__); } } */
  11. well then ...thanks for the willingness to help any way...im not sure just exactually where i messed up..i think it is in a section of 232 lines...total page is 3018...no way i would post that much,lol...thanks anyway
  12. well...the line it is telling me there is an error on is correct...it is after i added the other section that i now get the error...it says it is calling to an undefined object...the piece i added is kinda long and i think i made a mistake or two...as i said i am a n00b just trying to learn...i'll post the section here if i may...
  13. is there someone who will look over a page and see if you can see any errors...i cant find the problem... :-\ i am trying to teach my self and am a for sure rookie,lol...help please
×
×
  • 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.