Arcade Points and Arcade Menu Add-on

  Post new topicReply to topicPrintable Version
<< View previous topic View next topic >>
Share: Del.icio.us  Digg  Google  Spurl  Blink  Furl  Y! MyWeb  
#1   Arcade Points and Arcade Menu Add-on
joec08081
CZ Newbie
joec08081 has been a member for over 19 year's 19 Year Member
usa.gif pennsylvania.gif
Gender: Male
Status: Offline
Joined: Jan 19, 2005
0.00 posts per day
Posts: 3
Points: 3,104
   
ok now i have done a few mods before but i am still new to this i run platinum and i am trying to install the Arcade Points and Arcade Menu Add-on from codewiz now i have one small problem i have every file edited but proarcade.php in the read me it says to

#-----[ FIND ]------------------------------------------
#

if ( $row['score_game'] < $score )
{
$sql = "UPDATE " . SCORES_TABLE . " set score_game = $score , score_set = score_set + 1 , score_date = $datenow , score_time = score_time + $ecart
WHERE game_id = $gid and user_id = " . $userdata['user_id'] ;
$result = $db->sql_query($sql) ;

#
#-----[ AFTER, ADD ]------------------------------------------
#
//Arcade Points Addon Telli
$db->sql_query("UPDATE ".$prefix."_users SET $pname=$pname + $topscore WHERE username='$userdata[username]'");
//End Arcade Points Addon


ok now on my proarcade the only thing i seen that was close was


if ($row['score_game'] < $score) {
$sql = "UPDATE " . SCORES_TABLE . " set score_game = $score , score_set = score_set + 1 , score_date = $datenow , score_time = score_time + $ecart WHERE game_id = $gid and user_id = " . $userdata['user_id'] ;

if (!($result = $db->sql_query($sql))) {



where would i put my code sorry i am new to this thanks for all the help icon_smile.gif



Back to top Reply with quote
#2   re: Arcade Points and Arcade Menu Add-on
fncool
CZ Super Newbie
 Codezwiz Site Donator
fncool has been a member for over 19 year's 19 Year Member
canada.gif
Age: 62
Gender: Male
Status: Offline
Joined: Dec 19, 2004
0.01 posts per day
Posts: 56
Points: 4,786
   
mine looks like this:


      if ($row['score_game'] < $score) {
            $sql = "UPDATE " . SCORES_TABLE . " set score_game = $score , score_set = score_set + 1 , score_date = $datenow , score_time = score_time + $ecart WHERE game_id = $gid and user_id = " . $userdata['user_id'] ;

            if (!($result = $db->sql_query($sql))) {
                  message_die(GENERAL_ERROR, "Unable to insert data into scores table", '', __LINE__, __FILE__, $sql);
                  
                  //Arcade Points Addon Telli
   $db->sql_query("UPDATE ".$prefix."_users SET $pname=$pname + $topscore WHERE username='$userdata[username]'");
           //End Arcade Points Addon                  
                  
            }



i'm just showing you where, my files may be different than yours.



_________________
I'm only replying because I want those extra 22.52 points!
Back to top Reply with quote
#3   re: Arcade Points and Arcade Menu Add-on
joec08081
CZ Newbie
joec08081 has been a member for over 19 year's 19 Year Member
usa.gif pennsylvania.gif
Gender: Male
Status: Offline
Joined: Jan 19, 2005
0.00 posts per day
Posts: 3
Points: 3,104
   
ok ty i am going to try that i just didnt see the excat line but ill try that if it works for you ill try and see what happens thats for helping me and responding so fast and also mine loooks the same too i just didnt see the excat code so i wasnt sure but thanks again:D



Back to top Reply with quote
Display posts from previous:      
Add To: Del.icio.us  Digg  Google  Spurl  Blink  Furl  Y! MyWeb  
<< View previous topic View next topic >>
Post new topicReply to topic

Jump to 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You cannot download files in this forum