Roulette 277 mod - Currency/points issue

  Post new topicReply to topicPrintable Version
<< View previous topic View next topic >>
Share: Del.icio.us  Digg  Google  Spurl  Blink  Furl  Y! MyWeb  
#1   Roulette 277 mod - Currency/points issue
Mr_J0K3R
CZ Newbie
Mr_J0K3R has been a member for over 18 year's 18 Year Member
Gender: Male
Status: Offline
Joined: Jul 24, 2005
0.00 posts per day
Posts: 5
Points: 1,054
   
Ok, basic Nuke 7.5 few other mods & the likely added on over time.
Installed the "SHOP260-Nuke_Points" mod from this site, integrated & working nicely.
Props to the entire system & it's werkings.
To add a little spice to that whole "spending" side of the points area I wanted to add
the roulette 277 mod , again DL'd from here.
Mod is installed & werks just fine, 'cept 1 thing. It's not reading the same "points"
as the SHOP mod is running on.

I assume it's this little snippit of code from both files; roulette.php & roulette_process.php
$sql = "select config_value from " . CONFIG_TABLE . " where config_name='points_name'";
  if ( !($presult = $db->sql_query($sql)) ) { message_die(GENERAL_MESSAGE, 'Fatal Error Getting Points Name!'); }
  $prow = mysql_fetch_array($presult);


I'm wanting the roulette table to use the same "points" as the SHOP260 stated above.
When installing the SHOP260 everything went perfectly smooth & is a stock install, no alterations.
I'm not the greatest with raw php so I have no clue as far as altering it. . .
TY


Back to top Reply with quote
#2   re: Roulette 277 mod - Currency/points issue
Taut
PayPal Donation
CZ Revered Member
 Codezwiz Site Donator
Taut has been a member for over 20 year's 20 Year Member
usa.gif california.gif
Occupation: Entrepreneur
Gender: Female
Fav. Sports Team: SF Giants
Status: Offline
Joined: May 27, 2003
0.72 posts per day
Posts: 5530
Points: 481,695
   
check your db tables for both mods and make sure they have the same values. It's either points or nuke_points



Back to top Reply with quote
#3   
Mr_J0K3R
CZ Newbie
Mr_J0K3R has been a member for over 18 year's 18 Year Member
Gender: Male
Status: Offline
Joined: Jul 24, 2005
0.00 posts per day
Posts: 5
Points: 1,054
   
Pretty standard DB table set up.
In the nuke_users db table the row in question is called simply "points"
The SHOP260-Nuke_Points Alters the proper field.
I'm completely able to buy, sell, trade items through the "shop" with the standard "points"
Again the Code from - roulette.php & roulette_process.php



// Get name of points
$sql = "select config_value from " . CONFIG_TABLE . " where config_name='points_name'";
if ( !($presult = $db->sql_query($sql)) ) { message_die(GENERAL_MESSAGE, 'Fatal Error Getting Points Name!'); }
$prow = mysql_fetch_array($presult);


I've altered . . . config_name='points_name'";
So far I've tried;
'user_points' - 'points' - 'users_points' - 'nuke_points' - 'points_name' - many others. . .
Rather frustrating. . .

Where does it specify the "points" for the SHOP260 - mod?



Back to top Reply with quote
#4   re: Roulette 277 mod - Currency/points issue
Mr_J0K3R
CZ Newbie
Mr_J0K3R has been a member for over 18 year's 18 Year Member
Gender: Male
Status: Offline
Joined: Jul 24, 2005
0.00 posts per day
Posts: 5
Points: 1,054
   
I'd assume since from the DB they're called as 'points'
That would be the only thing I'd have to alter in both those files.
I've done that, & tried others, making sure both files match.

I go on site, refresh the roulette area. Enter my bet ammount, & click the place.
Always returns back with "you don't have enough money to make the bet"
So, I alter it again, matching both up again, refresh & try, same thing. . .

I'm kinda waiting on this issue to go ahead & alter the Black Jack, Keno, Slot machine
& other point gambling games, but
All of them use that same call for the points. . .



Back to top Reply with quote
#5   re: Roulette 277 mod - Currency/points issue
Taut
PayPal Donation
CZ Revered Member
 Codezwiz Site Donator
Taut has been a member for over 20 year's 20 Year Member
usa.gif california.gif
Occupation: Entrepreneur
Gender: Female
Fav. Sports Team: SF Giants
Status: Offline
Joined: May 27, 2003
0.72 posts per day
Posts: 5530
Points: 481,695
   
this post should answer your questions quicker
[ Register or login to view links on this board. ]



Back to top Reply with quote
#6   re: Roulette 277 mod - Currency/points issue
Mr_J0K3R
CZ Newbie
Mr_J0K3R has been a member for over 18 year's 18 Year Member
Gender: Male
Status: Offline
Joined: Jul 24, 2005
0.00 posts per day
Posts: 5
Points: 1,054
   
LoL, Thnx Taut.
I did manage to fix it solo, before I read that reference post.
Simply put I was only altering the one string, as stated above, in the two files.
Assuming is a terible thing boys & gurls. . .
Using the search function in notepad I simply searched for all references for the word "points"
There were about 3-5 in each of the above stated files that neeed altering,
but all is well now!

Thnx again Taut.



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