Jump to content
MakeWebGames

[mccode v2] 50 / 50 Chance Mod


Isomerizer
 Share

Recommended Posts

  • 3 years later...
dang i have been looking for this forever lol i've done some editting for those who haven't upgraded your mccodes lol so here it is all spiffy and error-less far as i know

 

You're unable to view this code.

Viewing code within this forum requires registration, you can register here for free.

Nice one i was planning on fixing this up but you beat me to it :P saved me the work thanks

only noticed 1 thing you forgot to end the page

EDIT: found a error

Players can match there own bet. player is sent 2 events only if you match your own bet ofc

Edited by Newbie
Link to comment
Share on other sites

And now, the cancellation of someone other than yourself's bet.

 

You're unable to view this code.

Viewing code within this forum requires registration, you can register here for free.

Im just talking a shot in the dark here and since im on my phone its kinda hard to read but its not tested and I hope it works.

Good catch though

Edit (again)

Now that I think about it, why let them cancel? They wanted to play the game so make them spend their money or charge them a fee like 50% or something

Edited by KyleMassacre
Link to comment
Share on other sites

Instead of using the _fetchUser() method, just use $_SESSION['userid'] no sense in doing another query for the id, when you already have it.

I cant tell if this was directed towards my last post, and if it wasnt disregard.

I did use the $userid variable and if im reading this correctly cause I have a hard time using sprintf() but the fetch variable is calling out the table information for the 50/50 and if this doesnt work my bad

Link to comment
Share on other sites

I cant tell if this was directed towards my last post, and if it wasnt disregard.

I did use the $userid variable and if im reading this correctly cause I have a hard time using sprintf() but the fetch variable is calling out the table information for the 50/50 and if this doesnt work my bad

The fetch method, is running a second query pulling the userid from the users table where the users id is equal to $_SESSION['userid'];

Hence why I said replace the $this->_fetchUser('userid'); with $_SESSION['userid'], no need to do a secondary query. :)

And to second, instead of your if ( ... ) { //does not own this chance } just put it in the where clause of the first $SQL

You're unable to view this code.

Viewing code within this forum requires registration, you can register here for free.

Edited by Djkanna
Link to comment
Share on other sites

yeah i've been working on the crystals one too ill add once we've figured a way to not bet yourself lol

 

You're unable to view this code.

Viewing code within this forum requires registration, you can register here for free.

didn't work

 

@ DJK

yeah sorry i forgot to update post when you told me ill get it up and running tonight :) BOTH Crystal and Money 5050s will be posted shortly only need to fix the ability to accept own bets :p even though if one accepts there own bet it wont benefit them :p

Link to comment
Share on other sites

C5050.php (so far)

 

You're unable to view this code.

Viewing code within this forum requires registration, you can register here for free.

 

M5050.php (so far) Same thing just money instead of crystals...

 

You're unable to view this code.

Viewing code within this forum requires registration, you can register here for free.

 

these are 'functional'

Edited by AnonymousUser
thanks djk for pointing those out...
Link to comment
Share on other sites

C5050.php (so far)

You're unable to view this code.

Viewing code within this forum requires registration, you can register here for free.

M5050.php (so far) Same thing just money instead of crystals...

You're unable to view this code.

Viewing code within this forum requires registration, you can register here for free.

these are 'functional'

First one, misses the check for cancelling.

The second one, is invalidated by the second query (that I assume has been left in by mistake :) )

Link to comment
Share on other sites

here you go guys! this one's set for crystals but you know how to edit lol if you dont then you shouldnt own a game in my opinion

 

You're unable to view this code.

Viewing code within this forum requires registration, you can register here for free.

Edited by AnonymousUser
my mistake forgot to make it v2 :p
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • Create New...