Hello There, Guest! Login or Register


Deather's Quiz Master
#2
Nice, but the only bad thing is, it use pretty much RAM memory.
Code:
#
new D_question[MAX_QUES][MAX_QUES];
#
new D_option1[MAX_QUES][MAX_QUES];
#
new D_option2[MAX_QUES][MAX_QUES];
#
new D_option3[MAX_QUES][MAX_QUES];
#
new D_answ[MAX_QUES][MAX_QUES];]#
enum D_questquiz
#
{
#
        D_qquest[256],
#
        D_opt1[256],
#
        D_opt2[256],
#
        D_opt3[256],
#
        D_ans[256]
#
};
#

#
new D_quiz[MAX_QUES][D_questquiz];
If I calculated that correct than use that 2 500 000 bytes RAM, and that's almost 2.5MB
I'd write all the strings in a file, and than I'd make variables for only 1 question, because you can only ask 1 question at the time and when the question change than you can read the next question.
Ohh... And why do you need to make a string of 32chars when you only need to save 1 letter? ;)
But the rest of the script is good. =)
I also wanted to make once a quiz script, but due lack of time I never start to make it.
Good look with your scripts. :P
~ Guillaume
Reply


Messages In This Thread
Deather's Quiz Master - by deather - 07-23-2010, 06:29 PM
Re: Deather's Quiz Master - by guillaume - 07-24-2010, 06:49 PM
Re: Deather's Quiz Master - by Plolice_police - 08-17-2010, 08:06 PM