Points Modification for Arcade

  Post new topicReply to topicPrintable Version
<< View previous topic View next topic >>
Share: Del.icio.us  Digg  Google  Spurl  Blink  Furl  Y! MyWeb  
#1   
Telli
Site Admin
Telli has been a member for over 20 year's 20 Year Member
Occupation: Self Employed
Age: 45
Gender: Male
Fav. Sports Team: Detroit Red Wings
Website:
Status: Offline
Joined: May 26, 2003
1.06 posts per day
Posts: 8089
Points: 494,430
   
Double check your installation.




_________________
The path of the righteous man is beset on all sides by the inequities of the selfish and the tyranny of evil men. Blessed is he, who in the name of charity and good will, shepherds the weak through the valley of darkness, for he is truly his brother's keeper and the finder of lost children. And I will strike down upon thee with great vengeance and furious anger those who would attempt to poison and destroy my brothers. And you will know my name is the Lord when I lay my vengeance upon thee. Ezekiel 25:17
Back to top Reply with quote
#2   re: Points Modification for Arcade
reddog
CZ Super Newbie
 Codezwiz Site Donator
reddog has been a member for over 20 year's 20 Year Member
usa.gif illinois.gif
Age: 55
Gender: Male
Fav. Sports Team: Da Bears
Website:
Status: Offline
Joined: Dec 27, 2003
0.01 posts per day
Posts: 86
Points: 12,465
  MSN Messenger ICQ Number
thank you for the responce.......the install looks good with one exception, in the proarcade.php.

this is how your instructions look:
#
#-----[ FIND ]------------------------------------------
#

if ( ( $row = $db->sql_fetchrow($result) ) && ( $row['game_highscore']< $score) )
{
   $sql = "UPDATE " . GAMES_TABLE . " set game_highscore = $score , game_highuser = "
   . $userdata['user_id'] . " , game_highdate = " . time() . " WHERE game_id = $gid" ;
   $result = $db->sql_query($sql);


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


this is how my file looks at those paticular lines,

if ( ( $row = $db->sql_fetchrow($result) ) && ( $row['game_highscore']< $score) )
{// Si l'utilisateur a battu le record du jeu
   $sql = "UPDATE " . GAMES_TABLE . " SET game_highscore = $score , game_highuser = "
   . $userdata['user_id'] . " , game_highdate = " . time() . ", game_set = game_set+1 WHERE game_id = $gid" ;
   $result = $db->sql_query($sql) ;
    //Arcade Points Addon Telli
   $db->sql_query("UPDATE ".$prefix."_users SET $pname=$pname + $highscore WHERE username='$userdata[username]'");
                //End Arcade Points Addon
}


in my proarcade file; two lines before " //Arcade Points Addon Telli" the lines have: game_set+1 WHERE game_id = $gid" ;

thats the only thing i see thats different. any ideas? Thanks again !!


Back to top Reply with quote
#3   re: Points Modification for Arcade
philipeddies
CZ Newbie
 Codezwiz Site Donator
philipeddies has been a member for over 17 year's 17 Year Member
Gender: Male
Status: Offline
Joined: May 15, 2006
0.00 posts per day
Posts: 5
Points: 854
   
Hi,

The mod has been working fine for me, but I have noticed that some users have found they do not need points to play if they use the "New Window" link and play the game in a new window.

I am going to copy the code in the instructions for games.php to gamespopup.php and see what that does.

Just thought I would let you know



Back to top Reply with quote
#4   re: Points Modification for Arcade
zerocool
CZ Super Newbie
zerocool has been a member for over 18 year's 18 Year Member
Gender: Male
Status: Offline
Joined: Mar 04, 2006
0.01 posts per day
Posts: 40
Points: 495
   
Do I need the Cashmod to have this addon to work. And does these mods work under nuke version is from [ Register or login to view links on this board. ]



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