![]() |
slotmachine.php, the slotmachine from the levelup, but for the arcade!
2 Attachment(s)
Hiya there as u may have seen, ive made a slotmachine script for when u level and adoptable, that u have a chance to win prices!
Now ive made it that its an new .php file wich includes: -Unspammable (users can only use it once a day) -Easy customizable price gold amount First of all, you will need to run a MYSQL Query PHP Code:
Third: Download slotmachine.php And your done :D EXTRA! Now the prices seem pretty low, 20,30,50 for once a day, but here i will explain how to edit the prices. in slotmachine.php find: PHP Code:
PHP Code:
Example: PHP Code:
Hoep i helped :) |
This is really awesome. I do find 1 problem though. If a user lines up 2 numbers, but they're in slot 2 & 3, they don't get the match 2 prize, only match 1. Is there any way to change that?
|
u have to have all 3 numbers to get a prize, that was meant to be
well, my base is coded like if slot1 =2 and slot2=2 and slot3=2 , then u will get a price, its easy to change tough. as u see this code PHP Code:
PHP Code:
|
ah, I see, I'll try adding some new prize numbers then :3
Thank you! |
No Problem :)
|
Just in case others would like there to be a match 2 secondary prize (and just change the rewards to match your taste)
Code:
if($slot1 == 1 && $slot2 == 1 && $slot3 == 1){ |
i am not a VERY good coder myself too, but i manage to do stuff, it looks good :)
|
Quote:
This is just a small example: PHP Code:
|
thanks, im not that good with array, i saw some examples, but if all 3 match would be good for me xD
|
Mapleblade, instead of comparing the variable to a number why not just compare it to each other?
PHP Code:
should be PHP Code:
|
All times are GMT -5. The time now is 09:56 AM. |
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, vBulletin Solutions Inc.