When I run this code I whipped up for a personal project, I get an ERR: TYP when I don't see where the error is. OS: 2.55MP patched with Unsigned to have my name in the about screen. DCS version: 7.2. Optimizations are okay also.
SourceCoder 3 (DCSSHELL) wrote:
::DCS
:"
:DelVar Str2DelVar Str1
:ClrHome
:Input "USER:",Str1
:Lbl 1
:Input Str1,Str2
:If Str2="ECHO" or Str2="echo
:Then
:Input "echo:",Str2
:Disp Str2
:End
:If Str2="ping" or Str2="PING
:Disp "nice try
:If Str2="QUADRATIC" or Str2="quadratic
:Then
:ClrHome
:Prompt A,B,C
:Disp (~B+sqrt(B^^2-4AC))/2A,(~B-sqrt(B^^2-4AC)/2A
:Pause
:End
:If Str2="BLAME" or Str2="blame
:Disp "when in doubt,","blame comic!
:If inString(Str2,"nikkybot
:Disp "make tev make it
:If Str2="exit" or Str2="exit
:Return
:If Str2="cake" or Str2="CAKE
:Disp "lies, all lies
:If Str2="CALC" or Str2="calc" or Str2="CLAC" or Str2="clac
:Then
:Input "calc:",Str3
:Disp expr(Str3
:End
:If Str2="2+2
:Disp 5
:If Str2="CEMETECH" or "cemetech
:Disp "leading the way","to the future
:If Str2="OMNIMAGA" or "omnimaga
:Disp "lobsters
:If Str2="FLOOD" or Str2="flood
:Then
:For(A,0,4
:Disp "CEMETECHOMNIMAGA
:Disp "OMNIMAGACEMETECH
:End
:End
:Goto 1
:"
:DelVar Str2DelVar Str1
:ClrHome
:Input "USER:",Str1
:Lbl 1
:Input Str1,Str2
:If Str2="ECHO" or Str2="echo
:Then
:Input "echo:",Str2
:Disp Str2
:End
:If Str2="ping" or Str2="PING
:Disp "nice try
:If Str2="QUADRATIC" or Str2="quadratic
:Then
:ClrHome
:Prompt A,B,C
:Disp (~B+sqrt(B^^2-4AC))/2A,(~B-sqrt(B^^2-4AC)/2A
:Pause
:End
:If Str2="BLAME" or Str2="blame
:Disp "when in doubt,","blame comic!
:If inString(Str2,"nikkybot
:Disp "make tev make it
:If Str2="exit" or Str2="exit
:Return
:If Str2="cake" or Str2="CAKE
:Disp "lies, all lies
:If Str2="CALC" or Str2="calc" or Str2="CLAC" or Str2="clac
:Then
:Input "calc:",Str3
:Disp expr(Str3
:End
:If Str2="2+2
:Disp 5
:If Str2="CEMETECH" or "cemetech
:Disp "leading the way","to the future
:If Str2="OMNIMAGA" or "omnimaga
:Disp "lobsters
:If Str2="FLOOD" or Str2="flood
:Then
:For(A,0,4
:Disp "CEMETECHOMNIMAGA
:Disp "OMNIMAGACEMETECH
:End
:End
:Goto 1