![]() |
Home Community Mys-Script Creative Off-Topic |
|
![]() |
|
Thread Tools | Display Modes |
|
#1
|
||||
|
||||
![]()
Sorry to further pester you...but I seem to be having an issue. I just did a fresh download and reset it all up, but the day following the first a user plays they can simply refresh the page and continue playing endlessly, but are not rewarded with any currency. So they can wait a day, and then play again but not earn any of the currency. It works right the very first day, but not any of the days after that.
I don't know if that makes any sense, sorry ;^;
__________________
My Mods Site (1.3.4, 2020 Mods) |
#2
|
||||
|
||||
![]()
After a while, I finally managed to recreate this problem on one of my accounts. It's actually a major problem but I should be able to fix it.
![]() Sooooo I'll get back to you on that!!
__________________
Please do not contact me directly outside of Mysidia.
I also cannot troubleshoot code more than two years old - I legit don't remember it. |
#3
|
||||
|
||||
![]()
Alrighty! If there's any way I might be able to help, please let me know!
I've been looking at the files you created to see if I can figure out how to apply this to some different javascript games, as well!
__________________
My Mods Site (1.3.4, 2020 Mods) |
#4
|
|||
|
|||
![]()
https://gyazo.com/10be6dad33a390269df542d3cdfd3a22 this happened upon installing :C
|
#5
|
||||
|
||||
![]()
Simply sounds like you didn't do something right, likely a file was not put into the proper place in your site directory. I would double check the front thread thoroughly and check the listed directories to make sure the right files are in there;
games/.htaccess games/hilo/sendscore.php games/hilo/hilo.php games/hilo/hilo.css games/hilo/hilo.js hilo.php view/hiloview.php So the first 5 should be in a folder called "games" (exactly, including all lower case), hilo.php should be in your base directory, and then hiloview.php should be in your view folder.
__________________
My Mods Site (1.3.4, 2020 Mods) |
#6
|
||||
|
||||
![]()
Hi Kyttias! Mind if I confirm something with you? I noticed that the iframe displays the hilo game page with the username in the url. Since this is editable via inspect element, wouldn't users be able to play as others? Thanks! :3
|
#7
|
||||
|
||||
![]()
In short... yes? If you have a better solution, feel free to suggest one? If they play as another user, that other user will get the gold, not them (no matter what may display for the current user pretending). It will also count down the the other user's plays.
__________________
Please do not contact me directly outside of Mysidia.
I also cannot troubleshoot code more than two years old - I legit don't remember it. |
#8
|
||||
|
||||
![]()
Okay, I see. I was just concerned as some users might mischeviously try to use up all others' plays and guess the number wrong? O.o
|
#9
|
||||
|
||||
![]()
It should be possible to do it by the user's id number instead... since that information is less readily available?
__________________
Please do not contact me directly outside of Mysidia.
I also cannot troubleshoot code more than two years old - I legit don't remember it. |
#10
|
||||
|
||||
![]()
Wait, I found a solution! We can just use cookies on the sendscore.php page. Umm, I'll try creating a new cookie when a user logs in... this will be username. If the cookie doesn't match the inputed username, the script can be stopped.
Last edited by Hwona; 01-27-2016 at 06:52 PM. |
![]() |
Tags |
ajax, game, higher or lower, javascript |
Thread Tools | |
Display Modes | |
|
|
What's New? |
What's Hot? |
What's Popular? |