09.05.2009, 20:53
Hi
I created an trivia system, with questions that I created in array.
Example:
But, when I'm trying to read something from this, it's give "".
It's just send "Trivia:" and "" to all..
I'll be happy if someone will tell me why it's happen and how to fix it.
Thanks.
I created an trivia system, with questions that I created in array.
Example:
pawn Code:
new triviaQuestions[][5][64] =
{
{" Question 1?","answer 1","answer 2","answer 3","right answer number"},
{" Question 2?","answer 1","answer 2","answer 3","right answer number"},
{" Question 3?","answer 1","answer 2","answer 3","right answer number"},
{" Question 4?","answer 1","answer 2","answer 3","right answer number"},
{" Question 5?","answer 1","answer 2","answer 3","right answer number"}
};
pawn Code:
new q = random(sizeof(triviaQuestions))
SendClientMessageToAll(green," Trivia:");
SendClientMessageToAll(green,triviaQuestions[q][0]);
//...
I'll be happy if someone will tell me why it's happen and how to fix it.
Thanks.