Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > Premium Archives > ibProArcade Archive
FAQ Community Calendar Today's Posts Search

 
 
Thread Tools
How to change a player's score? Details »»
How to change a player's score?
Version: , by mr peas mr peas is offline
Developer Last Online: Apr 2009 Show Printable Version Email this Page

Version: Unknown Rating:
Released: 08-29-2007 Last Update: Never Installs: 0
 
No support by the author.

Hey, I recently deleted a player's score in Duck Hunt 2. I thought he cheated be he didn't, took him 2 hours to gain 1,000,000 points. I'd like to return the score. Where can I edit the information so that it would read that again?

Hurry, if I don't change it soon, he will kick me in the b*lls. Seriously.

My b*lls are depending on you.

Thanks.

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #2  
Old 08-29-2007, 05:04 AM
MrZeropage's Avatar
MrZeropage MrZeropage is offline
 
Join Date: Nov 2003
Location: Munich, Germany
Posts: 3,012
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

run this query:

UPDATE games_champs SET champ_mid=UserID, champ_name='Username', champ_score=Score, champ_date=Unixtime of Score, champ_time=Unixtime TimeSpent WHERE champ_gid=GameID

Please notice that this will only update the current highscore information, nothing more.
Reply With Quote
  #3  
Old 08-29-2007, 10:42 AM
mr peas mr peas is offline
 
Join Date: Aug 2007
Posts: 4
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

UPDATE games_champs SET champ_mid=28, champ_name='Mando', champ_score=1000000, champ_date=1188332940, champ_time=1188394316 WHERE champ_gid=duckhunt2

Score: 3000
Game: Duck Hunt 2
Date: 2007-08-28 09:29 pm

Took in an error with the above information entered:

An error occurred while attempting to execute your query. The following information was returned.
error number: 1146
error desc: Table 'pnoisec_vbnv240sx.games_champs' doesn't exist

Whats that mean?
Reply With Quote
  #4  
Old 08-29-2007, 11:04 AM
stangger5's Avatar
stangger5 stangger5 is offline
 
Join Date: Jan 2005
Location: Online
Posts: 1,130
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

One problem I see,,is the WHERE champ_gid=duckhunt2

Should use the id number instead of name...
Like WHERE champ_gid=6

Are you useing a TABLE_PREFIX ??
Reply With Quote
  #5  
Old 08-29-2007, 11:31 AM
mr peas mr peas is offline
 
Join Date: Aug 2007
Posts: 4
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I dont think I'm using a table_prefix, unsure what that is, haha sorry. How do I find the champ_gid? The gameID# doesnt show up on any of the control panels and what not.
Reply With Quote
  #6  
Old 08-29-2007, 11:35 AM
Gemma's Avatar
Gemma Gemma is offline
 
Join Date: Apr 2004
Location: Scotland
Posts: 1,229
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Scroll over the game link in either the arcade or the game list in AdminCP - you will see something like

http://*************/arcade.php?act=Arcade&do=play&gameid=262

Enter that gameid in the query (ie 262 or whatever Duckhunt 2's ID is)
Reply With Quote
  #7  
Old 08-29-2007, 04:57 PM
mr peas mr peas is offline
 
Join Date: Aug 2007
Posts: 4
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Okay, I plugged this in:

UPDATE games_champs SET champ_mid=28, champ_name='Mando', champ_score=1000000, champ_date=1188332940, champ_time=1188394316 WHERE champ_gid=14

I still get this error:

An error occurred while attempting to execute your query. The following information was returned.
error number: 1146
error desc: Table 'pnoisec_vbnv240sx.games_champs' doesn't exist

I dont know how that table can't exist.
Reply With Quote
  #8  
Old 08-29-2007, 05:22 PM
MrZeropage's Avatar
MrZeropage MrZeropage is offline
 
Join Date: Nov 2003
Location: Munich, Germany
Posts: 3,012
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

you are surely using a table-prefix, check your /includes/config.php for this setting and adapt the query:

if prefix is for example vb3_ do "UPDATE vb3_games_champs SET ..."
Reply With Quote
 


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 11:18 AM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.04316 seconds
  • Memory Usage 2,259KB
  • Queries Executed 21 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (8)post_thanks_box
  • (8)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (8)post_thanks_postbit_info
  • (7)postbit
  • (8)postbit_onlinestatus
  • (8)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete