HQ NETWORK:  360-Hq.Com  |  PSP-Hq.Com  |  PC-Hq.Com  |  AIDeluxe.Com  |  CXboXTool.Xbox-Hq.ComGuests: 697 | Members: 10


   Current Location: Forums *****VIP FTP Server Update*****   |   Finished Getting Xenium2.3.1 on now getting file dosen't fit   |   How to convert DRM protected music and movies to MP4/AVI/MOV   |   XBMC Installer Deluxe v1.20   |   Noob Needs help with File dosen't fit Error   |   2.4ghz recievers   |   EvolutionX 3935   |   Chimps+500g help   |   Xbox live fun?   |   NooB Question about LED Color for HTTP flash   |   
  Home | Active Topics | CD/DVD Media | Downloads | Forums | Feedback | Games | HardDrives | Homebrew | My Profile | ModChips | Reviews | Search | SoftMods | Tutorials
Xbox Forums
Discuss all aspects of the Xbox Console in our Interactive Forums...
Problems Signing up or Receiving Emails?? Please read This Topic

SmartXX v3 $55 | DuoX 2 Cromwell Edition $14.99 | DuoX 2 GS $9.90
Divineo WorldWide! A store supporting just about every country in the World!
Xecuter 3 CE $51.99 | Xecuter 2.6 CE $30 | Xecuter 2.6 Programmer $15.99

Xbox-Hq.Com :: View topic - pnFlashGames for PHPNuke v0.5++ (VIP) Testers needed!
Xbox-Hq.Com Forum Index -> pnFlashGames Beta Testers/Bug Reports
Post new topic Reply to topic    
 pnFlashGames for PHPNuke v0.5++ (VIP) Testers needed! View previous topic :: View next topic  
 
 
 
 
forahobby
Administrator
Administrator




Joined: May 22, 2003
Posts: 15641
Location: NSW, Australia

Post Posted: Thu Jun 23, 2005 10:12 am   
Post subject: pnFlashGames for PHPNuke v0.5++ (VIP) Testers needed!
Reply with quote
 
Hi VIP Members,

- New Search Function
- Sort Functions
- My Settings (members only)

Im hoping some of you may want to test the new v0.5++ version which im going to release to all very soon.. I just want to make sure there are no huge bugs..

For anyone that wants to help please contact me via EMAIL! Smile
http://www.xbox-hq.com/html/feedback.html

Ill get back to you ASAP... Im trying to get this baby all polished up now for you all.. If there is more optoins you want SPEAK UP NOW!

anyway, talk soon coolies.

l8r

FH
http://www.xbox-hq.com

_________________

---->> DOWNLOAD 360-HQ Hi-Score Games Toolbar <<----


My status


View user's profile Send private message Send e-mail Visit poster's website
 
 
 
 
usapmaster
Xbox-HQ User
Xbox-HQ User





Joined: Apr 26, 2005
Posts: 17

Post Posted: Fri Oct 07, 2005 4:08 pm   
Post subject:
Reply with quote
 
Hi FH,
You may want to check my post regarding saving scores that already exist. It seems score field is part of a unique key, thus when the same score is already recorded, your score wont save. This means that you cant have two (or more) scores of 1000 in the same game.
BTW, I am using PHPNUKE 7.8 patched and pnflashgames 0.4.

Take care.

http://www.usapangpinoy.com


View user's profile Send private message
 
 
 
 
usapmaster
Xbox-HQ User
Xbox-HQ User





Joined: Apr 26, 2005
Posts: 17

Post Posted: Fri Oct 07, 2005 7:58 pm   
Post subject:
Reply with quote
 
I may have found where the problem is...
I found the ff lines in index.php in module folder for Flash_games, as well as in the oldcomponent.php.
I commented out those specific to double scores. My reasoning being is, if i played 2 hrs and it happened that I tied the score of the first placer, I will not get a credit for that??? At least give me the second place ..Smile.


Code:
// check if user has already got this score in the database
$sql2 = "SELECT * FROM ".$prefix."_flashgames_hiscores WHERE gid=$game_id and playerscore=$player_score";
$count = 0;
$result = $db->sql_query($sql2);
if(sql_num_rows($result, $db) > 0) {
// identical score found so display error that game not saved
echo "&opSuccess=false&error=notloggedin&endvar=1";
   die();
}else{
// no score found for user so save this score
sql_query("INSERT INTO $prefix"._flashgames_hiscores." (hid,gid,gamename,playername,playerscore,date) VALUES ('','$game_id','$game_name', '$player_name','$player_score','$date')", $dbi);
}

Code:
// check if user has already got this score in the database
$sql2 = "SELECT * FROM ".$prefix."_flashgames_hiscores WHERE gid=$game_id and playerscore=$player_score";
$count = 0;
//$result = $db->sql_query($sql2);
//if(sql_num_rows($result, $db) > 0) {
// identical score found so display error that game not saved
//echo "&opSuccess=false&error=notloggedin&endvar=1";
//   die();
//}else{
// no score found for user so save this score
sql_query("INSERT INTO $prefix"._flashgames_hiscores." (hid,gid,gamename,playername,playerscore,date) VALUES ('','$game_id','$game_name', '$player_name','$player_score','$date')", $dbi);
//}


View user's profile Send private message
 
 
 
 
usapmaster
Xbox-HQ User
Xbox-HQ User





Joined: Apr 26, 2005
Posts: 17

Post Posted: Fri Oct 07, 2005 8:50 pm   
Post subject:
Reply with quote
 
I know am playing around.. I revised the query statement to foolproof saving of scores...there is a possibility that the same game's score maybe submitted more than once.
Now my flashgames can record same scores!

Code:
// check if user has already got this score in the database
//$sql2 = "SELECT * FROM ".$prefix."_flashgames_hiscores WHERE gid=$game_id and playerscore=$player_score";
$sql2 = "SELECT * FROM ".$prefix."_flashgames_hiscores WHERE gid=$game_id and playerscore=$player_score and playername=$player_name and date=$date";


View user's profile Send private message
 
 
 
 
usapmaster
Xbox-HQ User
Xbox-HQ User





Joined: Apr 26, 2005
Posts: 17

Post Posted: Fri Oct 07, 2005 8:52 pm   
Post subject:
Reply with quote
 
I know am playing around.. I revised the query statement to foolproof saving of scores...there is a possibility that the same game's score maybe submitted more than once.
Now my flashgames can record same scores! Make sure to edit your codes using notepad. I think wordpad is messing it up.

Code:

// check if user has already got this score in the database
//$sql2 = "SELECT * FROM ".$prefix."_flashgames_hiscores WHERE gid=$game_id and playerscore=$player_score";
$sql2 = "SELECT * FROM ".$prefix."_flashgames_hiscores WHERE gid=$game_id and playerscore=$player_score and playername=$player_name and date=$date";


View user's profile Send private message
 
 
 
 
forahobby
Administrator
Administrator




Joined: May 22, 2003
Posts: 15641
Location: NSW, Australia

Post Posted: Sat Oct 08, 2005 3:17 am   
Post subject:
Reply with quote
 
Quote:
You may want to check my post regarding saving scores that already exist. It seems score field is part of a unique key, thus when the same score is already recorded, your score wont save. This means that you cant have two (or more) scores of 1000 in the same game.
BTW, I am using PHPNUKE 7.8 patched and pnflashgames 0.4.


Why would you want more then one score..?? Especially since its the same points.. The hiscores chart would look ugly becausse you would just see the same user over and over which i think is silly.

anyway, thats about to you.. You can remove that code and jst insert all hiscores if you like.

_________________

---->> DOWNLOAD 360-HQ Hi-Score Games Toolbar <<----


My status


View user's profile Send private message Send e-mail Visit poster's website
 
Display posts from previous:   
  Post new topic  
 
  Reply to topic  
|
 All times are GMT | Page 1 of 1
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
 

 Members Online (10) / Guests Online (697)
Members Browsing
REBOK4346, fa001, tomkat1127, gparis, jag3177, user1, rhinouk78, WheelieUK, salman1400, forahobby,

Legend
Administrator  Moderator  VIP Member  Registered User  Banned Users