Powered by Invision Power Board


Pages: (7) Ŧ First ... 3 4 [5] 6 7  ( Go to first unread post ) Reply to this topicStart new topicStart Poll

> [MOD] Casino, play 2 games and win or lose upload
Ghanso
Posted: May 1 2005, 12:52 PM
Quote Post


Member
**

Group: Members
Posts: 13
Member No.: 3,978
Joined: 27-March 05



Me too!
PMEmail Poster
Top
macosbrain
Posted: May 1 2005, 01:31 PM
Quote Post


Power User
***

Group: Power Users
Posts: 45
Member No.: 3,966
Joined: 27-March 05



Traasje i think your sql has error/ or thomething is wrong with your browser

because:

Sorry
No players with the userid
is only shown when no user with the id exist. what mysql version do you use???
another possible fault is your browser that doesnīt post the correct values to the script.

to your screenshot:
very "komisch" like we say, the trys are counted but all other has no values. maybe you try to edit the sql table manually and check if it work. if this works you can try to "echo" or "print" all post values an example:

after in casino.php
CODE

if((($_POST["color"]=="red"||$_POST["color"]=="black")||($_POST["number"]=="1"||$_POST["number"]=="2"||$_POST["number"]=="3"||$_POST["number"]=="4"||
$_POST["number"]=="5"||$_POST["number"]=="6"))&&($_POST["betmb"]==$bet_value1||
$_POST["betmb"]==$bet_value2||$_POST["betmb"]==$bet_value3||$_POST["betmb"]==$bet_value4||$_POST["betmb"]==$bet_value5||$_POST["betmb"]==$bet_value6||
$_POST["betmb"]==$bet_value7))  
{

place:
CODE

echo("you try this number '".$_POST["number"]."'<br>");
echo("or you try the color '".$_POST["color"]."'<br>");
echo("you bet'".$_POST["betmb"]."'<br>");


try this and give my an response, ok


--------------------
macosbrain.com is my site
PMEmail Poster
Top
Traasje
Posted: May 1 2005, 01:34 PM
Quote Post


Power User
***

Group: Power Users
Posts: 139
Member No.: 1,392
Joined: 14-December 04



you try this number ''
or you try the color 'red'
you bet'20971520'


i have MySQL 4.1.11

when i change the db manualy, then it shows up @ casino-player.php


This post has been edited by Traasje on May 1 2005, 01:38 PM
PMEmail Poster
Top
macosbrain
Posted: May 1 2005, 01:46 PM
Quote Post


Power User
***

Group: Power Users
Posts: 45
Member No.: 3,966
Joined: 27-March 05



for all with the " How fix show -2,097,152.00 kB -2,00Gb" problem


find in MY version
CODE

if($edit==0)


ADD befor:

CODE

$all = $arz[win]-$arz[lost];
if($all < 0)
{
$all = $all * -1;
$minus = "-";
}


replace the "print" else "print" after the if with:

CODE


print("<tr><td $bg><a href=userdetails.php?id=$arr[userid]><b>$arr[username]</b></a></td><td align=left $bg>$uploaded</td><td align=left $bg>$downloaded</td><td align=left $bg>$ratio</td><td align=left $bg>".mksize($arz[win])."</td><td align=left $bg>".mksize($arz[lost])."</td><td align=left $bg>$arz[trys]</td><td align=left $bg> $minus".mksize($all)."</td></tr>\n");
else
print("<tr><td $bg><a href=userdetails.php?id=$arr[userid]><b>$arr[username]</b></a></td><td align=left $bg>$uploaded</td><td align=left $bg>$downloaded</td><td align=left $bg>$ratio</td><td align=left $bg>".mksize($arz[win])."</td><td align=left $bg>".mksize($arz[lost])."</td><td align=left $bg>$arz[trys]</td><td align=left $bg> $minus".mksize($all)."</td><td align=left $bg><form name=edit-player method=post action=casino_player_edit.php><input type=hidden name=userid value=$arr[userid]> <input class=btn type=submit value=edit ></form></td></tr>\n");




--------------------
macosbrain.com is my site
PMEmail Poster
Top
macosbrain
Posted: May 1 2005, 01:56 PM
Quote Post


Power User
***

Group: Power Users
Posts: 45
Member No.: 3,966
Joined: 27-March 05



@Traasje

i think i know the problem:
$CURUSER["id"]

try
CODE

echo("your id'".$CURUSER["id"]."'<br>");


if the value is emty you have another tb version and therefor mysql canīt update the values. but the trys are still counted sad.gif
sorry but if the value is correct i donīt have an idea where the error occured.
i am really sorry


--------------------
macosbrain.com is my site
PMEmail Poster
Top
Traasje
Posted: May 1 2005, 02:01 PM
Quote Post


Power User
***

Group: Power Users
Posts: 139
Member No.: 1,392
Joined: 14-December 04



you try this number ''
or you try the color 'red'
you bet'20971520'
your id'2'
PMEmail Poster
Top
macosbrain
Posted: May 1 2005, 02:05 PM
Quote Post


Power User
***

Group: Power Users
Posts: 45
Member No.: 3,966
Joined: 27-March 05



ok 2 trys left:


echo $win_amount;
and
echo $win;

are the values zero ????


--------------------
macosbrain.com is my site
PMEmail Poster
Top
Traasje
Posted: May 1 2005, 02:09 PM
Quote Post


Power User
***

Group: Power Users
Posts: 139
Member No.: 1,392
Joined: 14-December 04



you try this number ''
or you try the color 'red'
here: 3
you bet'20971520'
and here:
your id'2'


the value of echo $win; is empty
PMEmail Poster
Top
macosbrain
Posted: May 1 2005, 02:17 PM
Quote Post


Power User
***

Group: Power Users
Posts: 45
Member No.: 3,966
Joined: 27-March 05



ok go to the top -> config ad look for $win_amount

set this value higher als 0.
then your $win should be a correct value if still error occours try this:

find
CODE

$win = $win_amount*$betmb;


and replace this with
CODE

$win = 2*$betmb;


i think this should work.


--------------------
macosbrain.com is my site
PMEmail Poster
Top
Traasje
Posted: May 1 2005, 02:19 PM
Quote Post


Power User
***

Group: Power Users
Posts: 139
Member No.: 1,392
Joined: 14-December 04



$cheat_ratio_global = 0.4;
/// same as user just global
$win_amount = 3;
// how much do the player win in the first game eg. bet 300, win_amount=3 ---->>> 300*3= 900 win
$win_amount_on_number = 6;
// same as win_amount for the number game
$show_real_chance = false;
///shows the user the real chance true or false


now i am going to try option 2 :-)
answer within a minute
PMEmail Poster
Top
Traasje
Posted: May 1 2005, 02:21 PM
Quote Post


Power User
***

Group: Power Users
Posts: 139
Member No.: 1,392
Joined: 14-December 04



you try this number ''
or you try the color 'red'
3you bet'2147483648'
your id'2'

Yes Traasje
you got it and win 0.00 kB because red is the winner

PMEmail Poster
Top
macosbrain
Posted: May 1 2005, 02:33 PM
Quote Post


Power User
***

Group: Power Users
Posts: 45
Member No.: 3,966
Joined: 27-March 05



sh** i donīt know the error.
the only thing you can do now -> set win to a const value for example
CODE

$win = 12345678;


and test this.


--------------------
macosbrain.com is my site
PMEmail Poster
Top
Traasje
Posted: May 1 2005, 02:42 PM
Quote Post


Power User
***

Group: Power Users
Posts: 139
Member No.: 1,392
Joined: 14-December 04



you try this number ''
or you try the color 'red'
3
you bet'2147483648'
12345678
your id'2'

and:

Yes Traasje
you got it and win 0.00 kB because red is the winner

edit: i know... i am a pain in the butt sad.gif

This post has been edited by Traasje on May 1 2005, 02:43 PM
PMEmail Poster
Top
macosbrain
Posted: May 1 2005, 02:47 PM
Quote Post


Power User
***

Group: Power Users
Posts: 45
Member No.: 3,966
Joined: 27-March 05



i really donīt know it.
the problem is anywhere in the code

CODE

$win = $win_amount*$betmb;

if($CURUSER["uploaded"] < $betmb)
 stderr("Sorry ".$CURUSER["username"],"but you have not uploaded ".mksize($betmb));

stdhead();
 

if(rand(0,$cheat_value)==$cheat_value)
{
 stdmsg("Yes ".$CURUSER["username"],"you got it and win ".mksize($win)." because ".$winner_was." is the winner");


but i canīt help you Traasje. maybe there is an more skilled php programmer that knows the problem.


--------------------
macosbrain.com is my site
PMEmail Poster
Top
Traasje
Posted: May 1 2005, 02:52 PM
Quote Post


Power User
***

Group: Power Users
Posts: 139
Member No.: 1,392
Joined: 14-December 04



d*mn :-(
thanks anyway for your time

PMEmail Poster
Top
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

Topic OptionsPages: (7) Ŧ First ... 3 4 [5] 6 7  Reply to this topicStart new topicStart Poll

 



[ Script Execution time: 0.0604 ]   [ 12 queries used ]   [ GZIP Enabled ]