Bennu Game Development

Foros en EspaƱol => Mesa de Ayuda => Topic started by: Milton884 on May 03, 2011, 12:53:08 PM

Title: Error Parametros
Post by: Milton884 on May 03, 2011, 12:53:08 PM
Hola que tal? , tengo este proceso que le defino un parametro, pero al ejecutar me tira error en la linea de definicion del proceso diciendo: Incorrect number of parameters. Function: DISPARO MinParams:0.(")")

[code language="bennu"]PROCESS Disparo(string quien) //<---- EN ESTA LINEA TIRA EL ERROR... No se que pasa... Tambien probe poniendolo sin tipo (sin el string)

   BEGIN
      prota=get_id(type nave);
      mar=get_id(type marciano);
      graph=3;
      
      if(quien=="marciano")
         y=father.y + 15;
         x=father.x;
      else
         y=father.y - 15;
         x=father;
      end
      
      
      LOOP
         
         if(quien=="")
            if(prota.disparando==1)
               y=y-10;
            end
            
            if(y<=0)
               prota.disparando=0;
               break; //destruimos el proceso de la memoria y de la pantalla.
            end
         else
            y=y+10;
            
            if(y>=600)
               break;
            end
         end
         
         frame;
      END
   END[/code]
Title: Re: Error Parametros
Post by: SplinterGU on May 03, 2011, 03:05:05 PM
porque seguramente antes la llamas con un numero diferente de parametros.
Title: Re: Error Parametros
Post by: Milton884 on May 03, 2011, 03:26:06 PM
Era eso exactamente, gracias!
Title: Re: Error Parametros
Post by: SplinterGU on May 03, 2011, 04:16:05 PM
de nada