This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.
Show posts Menu
l.Text = q[question].question;
// room script file
void on_key_press(eKeyCode k) {
if (k == eKeySpace) {
QuizModule.ImportQuestions("test");
int noq = QuizModule.NumberOfQuestions();
Display(String.Format("Loaded %d questions.", noq));
int i;
String questions = "";
while (i < noq) {
questions = questions.Append(q[i].question);
if (i < noq-1) questions = questions.Append("[---[");
i++;
}
Display(questions);
}
}
function room_FirstLoad()
{
QuizModule.SetupQuestionGUI(5);
}
l.Text = q[question].question;
function Button5_OnClick(GUIControl *control, MouseButton button)
{
if (cEgo.Room(4)== true){
int Ascore +=1;
cEgo.ChangeRoom(2);
}
bMyFirstBar=gGui2;
bMyFirstBar=(29);
question[0].category = eCatPolitics;
Question question[50];
struct Question {
String q; //The question
String ans[4]; //The answeres, from ans[0] to ans[3]. You could make 4 seperate variables, I preffer arrays
int RightAns; //Number of the correct answere;
int catagory; //Say 1 = Nature, 2 = Poltics etc.
};
Question question;
question. = ("Cé hé seo?");
question.ans[4] = ("Ronnie Drew");
question.RightAns = ("Ronnie Drew");
question.catagory= 1;
By continuing to use this site you agree to the use of cookies. Please visit this page to see exactly how we use these.
Page created in 0.061 seconds with 13 queries.