Ver Mensaje Individual
  #3  
Antiguo 12-06-2004
Avatar de cbrrr
cbrrr cbrrr is offline
Miembro
 
Registrado: jun 2004
Posts: 57
Reputación: 23
cbrrr Va por buen camino
si la variable robo la has de usar en un case, por qué no la defines directamente como integer??

Código Delphi [-]
 var  
   cataque :integer;
   vdefensa : integer; 
   robo : integer;
 begin
   robo := (cataque div 5) - (vdefensa div 5);
   case robo of
     -99..0: x:=10;
     ....
     ....
   end;
 end;
Nota que también he cambiado el / por div
__________________
Si no tienes algo que decir más importante que el silencio, cállate
Responder Con Cita