SMOKEY_TEK Posted October 11, 2011 Share Posted October 11, 2011 I made or well attempted to make a different 50/50 Chance, but I can't seem to get it to work right.. It works, but when someone tries to match my bet it doesn't do anything.. And when I try to remove my bet, nothing.. Can someone fix it for me, lol You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. Quote Link to comment Share on other sites More sharing options...
SMOKEY_TEK Posted October 15, 2011 Author Share Posted October 15, 2011 Anybody know if they can help me out? Quote Link to comment Share on other sites More sharing options...
SMOKEY_TEK Posted October 20, 2011 Author Share Posted October 20, 2011 Lawls, I guess not.. I'll just figure it out on my own, thanks for nothing :| Quote Link to comment Share on other sites More sharing options...
W3Theory || Peter Posted October 20, 2011 Share Posted October 20, 2011 Lawls, I guess not.. I'll just figure it out on my own, thanks for nothing :| I am sorry but you can't expect everyone to jump and help out, especially on a dying forum as this one. Secondly, there are way too many issues in your script to just point it out. Hint, secure you $_GET as right people can insert sql injections if they wanted to Quote Link to comment Share on other sites More sharing options...
lucky3809 Posted October 21, 2011 Share Posted October 21, 2011 i see some of your queries is not right, you need to include the userid if your expecting it to work for your players Quote Link to comment Share on other sites More sharing options...
ShadyCoco Posted October 24, 2011 Share Posted October 24, 2011 Why not use the one you got with GRPG? It works and only needs 4 lines secured. Quote Link to comment Share on other sites More sharing options...
SMOKEY_TEK Posted October 25, 2011 Author Share Posted October 25, 2011 Why not use the one you got with GRPG? It works and only needs 4 lines secured. Because the one I coded looks a lot better and it includes Money & Points instead of having two links Quote Link to comment Share on other sites More sharing options...
Zettieee Posted June 7, 2012 Share Posted June 7, 2012 It's been a while since I coded anything but i'd say: Don't suppress Errors like here: $betAmount = abs(@intval($_POST['betAmount'])); And the $_GET['something'] unless you have done something like this in classes, is a major security problem. $_GET['something'] = mysql_real_escape_string($_GET['something']); You should of just made a points mod (C&P) the money and changed the $_POST['money'] and changed it to points. Then added a table and stuck em both together? This code (from what i've read) isn't as random as it could be. You are giving the poster the value of 0 and the taker the value of 1. You should randomize the value you give each player as much as possible. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.