das zauberwort heißt *zauber*array*zauber*

du machtst einfach ein solches

Code:
var all_the_many_questions_and_ansers_blub_array[50000];



and in a function you make this:

Code:
all_the_many_questions_and_ansers_blub_array[0]="hi!";
all_the_many_questions_and_ansers_blub_array[1]="HEY!";
all_the_many_questions_and_ansers_blub_array[2]="wie gehts?";
all_the_many_questions_and_ansers_blub_array[3]="gut, dir?";



etc...

das tolle ist, dass du jetzt durch ne while gehen kannst nach dem prinzip

Code:
for(int i = 0;i<5000;i+=2)
{
if(str_cmpi(all_the_many_questions_and_ansers_blub_array[i],inkey_str)==1)
{
message=all_the_many_questions_and_ansers_blub_array[i+1];
}
}



ich hoffe das prinzip is klar geworden^^

PS: alle geraden(0,2,4...)zahlen sind "Fragen" und alle ungeraden(1,3,5...) sind antworten, deswegen schreib ich hier einfach i+1, *tada*

PPS: ok, ich hab dich missverstanden....
dann machst du irgendwie sowas:

Code:
message=all_the_many_questions_and_ansers_blub_array[integer(random(2500))*2]



Last edited by Scorpion; 12/11/07 15:53.