Jump to content
MakeWebGames

[mccode v2] Slots


Recommended Posts

  • Replies 50
  • Created
  • Last Reply

Top Posters In This Topic

Posted

Re: Free 2 - Slots

i got the images to but not from hers or her gallery nor games

i just found all the pics and i shrunk them in paint a lil bit :-D

  • 2 weeks later...
  • 1 month later...
  • 2 months later...
Posted

Re: [mccode v2] Slots

Minor problem with this Nyna, it lets money goto minus...

Fix -

slots.php:

You're unable to view this code.

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

 

if a user refreshed the post then it would allow them to play for free and set money to minus.

so everything from first post and this has slots.php

if you don't see the fix and have edited the mod then simply add:

You're unable to view this code.

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

below:

You're unable to view this code.

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

  • 4 weeks later...
Guest Anonymous
Posted

Re: [mccode v2] Slots

 

if they keep hitting f5 they can keep playing without tokens

.... so modify it then. I provide source which is often used elsewhere and which has been redone to suit the DBS/MCcodes environment. If you don't like it - don't use it. If it doesn't do quite what you want - alter it. The environments this (and my other "mods") come from is radically different to DBS/MCcodes, and thus has a lot more protection in place by default - I leave you these as "an example".
Posted

Re: [mccode v2] Slots

 

If you don't like it - don't use it.

I never stated I didn't like it, I actually love it and many of the mods you give us. I also wasn't asking for help. I was simply pointing out an observation to which I am looking to try to fix myself. I only come for help if I truly cannot find the answer. I just stumbled across the issue 5 minutes before posting..

Sorry

Posted

Re: [mccode v2] Slots

 

Minor problem with this Nyna, it lets money goto minus...

Fix -

slots.php:

You're unable to view this code.

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

 

if a user refreshed the post then it would allow them to play for free and set money to minus.

so everything from first post and this has slots.php

if you don't see the fix and have edited the mod then simply add:

You're unable to view this code.

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

below:

You're unable to view this code.

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

 

i fixed it and stated the fact...

but i disagree with Nyna this is a open forum is it not and even you can be criticized not just you criticizing us all the time (which you have done on many many occasions).

i don't get why people automatically bow down to you but that is another issue i guess, but in short criticizing is good to a extent it makes you realize where you went wrong on the mod and remember it for next time.

this mod basically just goes to show even the "Pro's" make mistakes.

i personally like the mod hence me using it but i thought if no-one has posted about the error maybe i should which is my right.

Guest Anonymous
Posted

Re: [mccode v2] Slots

 

i fixed it and stated the fact...

but i disagree with Nyna this is a open forum is it not and even you can be criticized not just you criticizing us all the time (which you have done on many many occasions).

i don't get why people automatically bow down to you but that is another issue i guess, but in short criticizing is good to a extent it makes you realize where you went wrong on the mod and remember it for next time.

this mod basically just goes to show even the "Pro's" make mistakes.

i personally like the mod hence me using it but i thought if no-one has posted about the error maybe i should which is my right.

[me=Nyna]sighs[/me]

When you actually understand *exactly* what the problem, please come back and have deliver us your verdict.

I am not perfect - far from it, I make more mistakes than you lot put together, and some of my mistakes can cost several hundred thousand, but really, I'm not that overly concerned.

Why?

a) This code (as all my code is) has been converted from a different environment which has a lot more stability to it than a DBS/MCcodes platform.

b) As I have quite clearly stated -- these "mods" are here as examples.

If you really want to criticize my work, feel free. I'm sure I can find somebody who cares. In the meantime, congratulations, you are probably the first person to spot one of the basic conversion issues.

And no -- that is not sarcastic.

Posted

Re: [mccode v2] Slots

 

i fixed it and stated the fact...

but i disagree with Nyna this is a open forum is it not and even you can be criticized not just you criticizing us all the time (which you have done on many many occasions).

i don't get why people automatically bow down to you but that is another issue i guess, but in short criticizing is good to a extent it makes you realize where you went wrong on the mod and remember it for next time.

this mod basically just goes to show even the "Pro's" make mistakes.

i personally like the mod hence me using it but i thought if no-one has posted about the error maybe i should which is my right.

[me=Nyna]sighs[/me]

When you actually understand *exactly* what the problem, please come back and have deliver us your verdict.

I am not perfect - far from it, I make more mistakes than you lot put together, and some of my mistakes can cost several hundred thousand, but really, I'm not that overly concerned.

Why?

a) This code (as all my code is) has been converted from a different environment which has a lot more stability to it than a DBS/MCcodes platform.

b) As I have quite clearly stated -- these "mods" are here as examples.

If you really want to criticize my work, feel free. I'm sure I can find somebody who cares. In the meantime, congratulations, you are probably the first person to spot one of the basic conversion issues.

And no -- that is not sarcastic.

you should really care it's your work but i am amazed at that reply i was considering world war III lol

afew parts of the reply puzzled me though

 

a) This code (as all my code is) has been converted from a different environment which has a lot more stability to it than a DBS/MCcodes platform.

You have said on several occasions to me and others "always test your codes again and again"

 

you are probably the first person to spot one of the basic conversion issues.

now is that a issue on your part like maybe your bipolar or something?

i still don't understand how noone else could see it i mean this is upto the 5-6th page of people basically just kissing your butt instead of reading the code.

i find it hilarious watching people with the brown noses...

this is a good mod just a simple noob mistake no need to pull your hair out about it :-P

Guest Anonymous
Posted

Re: [mccode v2] Slots

Actually I care a great deal - however this is just a tiny little mod - nothing special, nothing fancy. Without access to my main APIs, there's little I can do with DBS/MCcodes systems without replicating large chunks of commercial code -- which needless to say will never be released.

Yes - testing is important, Do you really test everything? And by that, I mean every single of code? Do you test every possible input? Do you analyze the C sources of PHP, MySQL and Apache to verify that they do what they are supposed to? Do you then go down to the operating system and test it? And even further into the microcode at chip level?

Guess what - the answer is no. There is only one level I don't touch out of that lot, and there are several levels that while I may have looked at briefly out of curiosity, I seldom need to run through a debugger to see what's going on.

So where does this go? It demonstrates that testing is seldom done thoroughly - it's not a mathematical proof. We all make assumptions. I mistakenly made the assumption that people would have sufficient intelligence to alter their tables to enforce certain rules, and use intelligent monitoring on all inputs.

 

i still don't understand how noone else could see it

Looks like you are falling into exactly the same trap I did. Maybe we should look at your work and look for "noob" mistakes.

And yes, that last part was a joke.

BTW, the fixes that have been presented - are all wrong. Scoobie snack to the first person that creates the *CORRECT* fix.

Posted

Re: [mccode v2] Slots

 

Actually I care a great deal - however this is just a tiny little mod - nothing special, nothing fancy. Without access to my main APIs, there's little I can do with DBS/MCcodes systems without replicating large chunks of commercial code -- which needless to say will never be released.

Yes - testing is important, Do you really test everything? And by that, I mean every single of code? Do you test every possible input? Do you <censored>yze the C sources of PHP, MySQL and Apache to verify that they do what they are supposed to? Do you then go down to the operating system and test it? And even further into the microcode at chip level?

Guess what - the answer is no. There is only one level I don't touch out of that lot, and there are several levels that while I may have looked at briefly out of curiosity, I seldom need to run through a debugger to see what's going on.

So where does this go? It demonstrates that testing is seldom done thoroughly - it's not a mathematical proof. We all make assumptions. I mistakenly made the assumption that people would have sufficient intelligence to alter their tables to enforce certain rules, and use intelligent monitoring on all inputs.

 

i still don't understand how noone else could see it

Looks like you are falling into exactly the same trap I did. Maybe we should look at your work and look for "noob" mistakes.

And yes, that last part was a joke.

BTW, the fixes that have been presented - are all wrong. Scoobie snack to the first person that creates the *CORRECT* fix.

correct me if im wrong but it works...

and the "lets look at your coding for noob mistakes"

you forget one main thing there...

I AM A NOOB

but you own a business and said once "i coded for Microsoft" im assuming your talking about in c+ which one of my mates does for Microsoft.

i may be a noob but i can admit i don't know things you don't admit it you just take the pee out of people who are new thats why noone dares post problems on CE anymore because someone has their head up their ass and instead of helping they take the pee...

open forum allows me to say whatever i like but im assuming i will be banned or my irc be taken off your server but ill speak my mind unlike all the brown noses who give your butt a good licking.

Guest Anonymous
Posted

Re: [mccode v2] Slots

Google Images Slot Machine

Google Images Slots

Google Images Fruits

  • 4 weeks later...
Posted

Re: [mccode v2] Slots

I propose one change to the slots.

 

You're unable to view this code.

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

 

Find that, and then, you need to determine how much it costs per play. The default is 10 bucks. If yours is $100, then 100 is the deal. Now, replace the code above with this:

 

You're unable to view this code.

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

 

On the part where $ir['money'] <= AMOUNT

AMOUNT is the amount it costs to play on your game.

Making this change prevents uses from their cash going negative. If you had 5 bucks, and didn't win, you'd go -5.

If you had an unsigned money column, your cash would then skyrocket into the billions, or even quadrilions if you had a bigint column for money.

Posted

Re: [mccode v2] Slots

How hard would it be to add a variable wager to the slots? What excatly would i need to change?

What i mean is, my players want to be able to make there own choice on max bet just like the slotsmachine...

Posted

Re: [mccode v2] Slots

Alrighty, I thought I had secured it, but there's till one more whole.

Find:

 

You're unable to view this code.

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

 

And edit it to this:

You're unable to view this code.

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

 

$ir['money'] >= 100 should be set to:

$ir['money'] >= AMOUNT_TO_PLAY

That will close the remaining whole that allows money to go negative.

Posted

Re: [mccode v2] Slots

Just started getting this every now and then:

Warning: Illegal offset type in /home/****/public_html/slots.php on line 118

Line 118:

$wheel = $wheels[$_SESSION['wheel']];

Any ideas? Never used to do this and nothings changed :?

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.


×
×
  • Create New...