0 Usuarios y 1 Visitante están viendo este tema.
q = get_string('question 1','1+1?')r = '2'if q = rq2 = get_string('question 2','2+2?')r2 = '4'if q2 = r2q3 = get_string('question 3','4+4?')r3 = '8'if q3 = r3q4 = get_string('question 4','8+8?')r4 = '16'if q4 = r4q5 = get_string('question 5','16+16?')r5 = '32'if q5 = r5q6 = get_string('question 6','32+32?')r6 = '64'if q6 = r6q7 = get_string('question 7','64+64?')r7 = '128'if q7 = r7q8 = get_string('question 8','128+128?')r8 = '256'if q8 = r8q9 = get_string('question 9','256+256?')r9 = '512'if q9 = r9q10 = get_string('question 10','512+512?')r10 = '1024'if q10 = r10highscore_show(score)
weno yo no se de codigo del gmk... pero si que toco otros lenguajes parecido... una cosita de la que ahora mismo no estoy seguro... en las condiciones... no buscas que compare entre una respuesta y otra? que sean iguales?... pues no deberia ser == en vez de = ?? pk qui no se pero en otros lenguajes un solo = es para dar un valor a la variable y no para ver si dos son iguales..edito: Además de la costumbre de que siempre se pone ; al final de cada linea siempre y cuando no sea una condicion xD pero weno... no se como funciona este lenguaje xD
elsehighscore_show(score)game_restart()
else{ highscore_show(score) break}
// game();var answer;argument0 += (argument0 == 0);argument1 += (argument0 == 1);answer = show_message("Pregunta " + string(argument0) + ": ¿" + string(argument1) + " * 2?", "");if (answer == string(argument1 * 2)) { return game(argument0 + 1, argument1 * 2);} else { return argument0 - 1;}
highscore_show(game());
q9 = get_string('question 9','256+256?')}}elseroom_restart()///////////////////////////////////////if score = 40{if q9 = r9{score = 45q10 = get_string('question 10','512+512?')}}elseroom_restart()////////////////////////////////////////if score = 45{if q10 = r10{score = 50;highscore_add_current();score = 0;highscore_show(score);show_message('WoW amazing');room_restart();FINAL = show_message_ext('continue?','No',noone,'Yes')}}if FINAL = 1game_end()if FINAL = 3game_restart()elseroom_restart()
el problema es que aparece este error cada vez que fallodigamos 1+1=z(obviamente equivocado)
if q10 = r10{ score = 50;highscore_add_current(); score = 0;highscore_show(score); show_message('WoW amazing'); room_restart(); FINAL = show_message_ext('continue?','No',noone,'Yes')}if FINAL=1...
var FINAL;if score = 45{ if q10 = r10 { score = 50; highscore_add_current(); score = 0; highscore_show(score); show_message('WoW amazing'); room_restart(); FINAL = show_message_ext('continue?','No',noone,'Yes') }}if FINAL = 1 game_end()if FINAL = 3 game_restart()else room_restart()