vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   ibProArcade Archive (https://vborg.vbsupport.ru/forumdisplay.php?f=174)
-   -   How to change a player's score? (https://vborg.vbsupport.ru/showthread.php?t=156500)

mr peas 08-29-2007 03:01 AM

How to change a player's score?
 
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.

MrZeropage 08-29-2007 05:04 AM

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.

mr peas 08-29-2007 10:42 AM

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?

stangger5 08-29-2007 11:04 AM

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 ??

mr peas 08-29-2007 11:31 AM

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.

Gemma 08-29-2007 11:35 AM

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)

mr peas 08-29-2007 04:57 PM

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.

MrZeropage 08-29-2007 05:22 PM

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 ..."


All times are GMT. The time now is 06:39 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.03924 seconds
  • Memory Usage 1,725KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (8)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.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/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.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
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete