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 (1/5)
0
Reputation
-
ok thanks...i'll try that
-
my site is in php...will frames work? before i go there and read all that stuff...lol
-
how would i do that?...i've never used frames...or is it to complex to get into here?
-
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]
-
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?
-
oh well...thanks for trying...happy new year everyone
-
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...
-
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
-
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']; } */
-
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__); } } */
-
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
-
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...
-
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