<?php$die=fopen("nothappening.txt", "r");$choke=fgets($die);fclose($die);print("<p>Burn.</p>");?>
But I don't know how. HALP PLS
Start from AA2
Quote from: Gasai Yuno on November 02, 2014, 04:48:15 PMBut I don't know how. HALP PLSReally simple if you're doing it on the web. Build a database with a user and questions table and then have a randomizer spit out questions you haven't correctly answered yet.You could even use a filesystem for this sort of thing, too, since it's simple enough.
Code: [Select]<?php$die=fopen("nothappening.txt", "r");$choke=fgets($die);fclose($die);print("<p>Burn.</p>");?>
Quote from: Cheat on November 02, 2014, 04:57:37 PMQuote from: Gasai Yuno on November 02, 2014, 04:48:15 PMBut I don't know how. HALP PLSReally simple if you're doing it on the web. Build a database with a user and questions table and then have a randomizer spit out questions you haven't correctly answered yet.You could even use a filesystem for this sort of thing, too, since it's simple enough.Nigga I have no idea what any of that meant.
Quote from: Gasai Yuno on November 02, 2014, 05:03:37 PMQuote from: Cheat on November 02, 2014, 04:57:37 PMQuote from: Gasai Yuno on November 02, 2014, 04:48:15 PMBut I don't know how. HALP PLSReally simple if you're doing it on the web. Build a database with a user and questions table and then have a randomizer spit out questions you haven't correctly answered yet.You could even use a filesystem for this sort of thing, too, since it's simple enough.Nigga I have no idea what any of that meant.Let me just back up...What are you writing it in?
Quote from: Cheat on November 02, 2014, 05:05:42 PMQuote from: Gasai Yuno on November 02, 2014, 05:03:37 PMQuote from: Cheat on November 02, 2014, 04:57:37 PMQuote from: Gasai Yuno on November 02, 2014, 04:48:15 PMBut I don't know how. HALP PLSReally simple if you're doing it on the web. Build a database with a user and questions table and then have a randomizer spit out questions you haven't correctly answered yet.You could even use a filesystem for this sort of thing, too, since it's simple enough.Nigga I have no idea what any of that meant.Let me just back up...What are you writing it in?Java pleb race
Quote from: Gasai Yuno on November 02, 2014, 05:07:04 PMQuote from: Cheat on November 02, 2014, 05:05:42 PMQuote from: Gasai Yuno on November 02, 2014, 05:03:37 PMQuote from: Cheat on November 02, 2014, 04:57:37 PMQuote from: Gasai Yuno on November 02, 2014, 04:48:15 PMBut I don't know how. HALP PLSReally simple if you're doing it on the web. Build a database with a user and questions table and then have a randomizer spit out questions you haven't correctly answered yet.You could even use a filesystem for this sort of thing, too, since it's simple enough.Nigga I have no idea what any of that meant.Let me just back up...What are you writing it in?Java pleb raceNot familiar with that shit, sorry.
Try Xbox.com?
Try Bungie.net?
Quote from: SmileySammy on November 02, 2014, 05:15:08 PMTry Bungie.net?Xbox.comFig
Quote from: Septy on November 02, 2014, 05:15:54 PMQuote from: SmileySammy on November 02, 2014, 05:15:08 PMTry Bungie.net?Xbox.comFigDon't ruin it, you idiota.
Quote from: BioSmiley on November 02, 2014, 05:14:33 PMTry Xbox.com?No faggot too late My anus is sore I fucking hate you so shut up beetle
Quote from: SmileySammy on November 02, 2014, 05:15:08 PMTry Bungie.net?I don't want autism
My advice would be define each question/ answer and the input/ output of such as a function, then give that function a number variable (IE question==1)Then use a random module to choose a random number between the amount of numbers you assigned and it then run that function. Or use a list and use the random to select which place in the list it should look, then removing that number from the list.So (I use python so it would have to be tweaked a bit)def q1(): *question 1 function*def q2(): *question 2 function*q1=1q2=2list[1,2]a=rand.number(0,1)list[a]I hope that made sense
Quote from: SmileySammy on November 02, 2014, 05:16:20 PMQuote from: Septy on November 02, 2014, 05:15:54 PMQuote from: SmileySammy on November 02, 2014, 05:15:08 PMTry Bungie.net?Xbox.comFigDon't ruin it, you idiota.
Quote from: BaconShelf on November 02, 2014, 05:16:01 PMMy advice would be define each question/ answer and the input/ output of such as a function, then give that function a number variable (IE question==1)Then use a random module to choose a random number between the amount of numbers you assigned and it then run that function. Or use a list and use the random to select which place in the list it should look, then removing that number from the list.So (I use python so it would have to be tweaked a bit)def q1(): *question 1 function*def q2(): *question 2 function*q1=1q2=2list[1,2]a=rand.number(0,1)list[a]I hope that made senseomg wat
My advice would be define each question/ answer and the input/ output of such as a function, then give that function a number variable (IE question==1)Then use a random module to choose a random number between the amount of numbers you assigned and it then run that function. Or use a list and use the random to select which place in the list it should look, then removing that number from the list.
Quote from: BaconShelf on November 02, 2014, 05:16:01 PMMy advice would be define each question/ answer and the input/ output of such as a function, then give that function a number variable (IE question==1)Then use a random module to choose a random number between the amount of numbers you assigned and it then run that function. Or use a list and use the random to select which place in the list it should look, then removing that number from the list.You could also import a file for questions and a file for answers, and have the matching pair on the same line. That would make it easier to edit them without recompiling the code.
Quote from: Cheat on November 02, 2014, 05:29:45 PMQuote from: BaconShelf on November 02, 2014, 05:16:01 PMMy advice would be define each question/ answer and the input/ output of such as a function, then give that function a number variable (IE question==1)Then use a random module to choose a random number between the amount of numbers you assigned and it then run that function. Or use a list and use the random to select which place in the list it should look, then removing that number from the list.You could also import a file for questions and a file for answers, and have the matching pair on the same line. That would make it easier to edit them without recompiling the code.I'm going off what I know for python, which unfortunately cannot import other files. I just write functions (Or is it modules? I get confused) and then recall them later. It's the next best thing.