So i was making this ICE program and SourceCoder3 kept giving me this error:Error on line 37 at "... <br />det(10)<br />End<br />(T...".<br />. Pleas, help and fix that error! Thanks in advance! 👍
😁
😁 SourceCoder 3 (DIP) wrote:
:[i]TAGGAME
:det(0)
:det(9,1)
:"02020444440444000400"->Str1
:"04040111110111000100"->Str2
:randInt(1,2)->I
:sum(1,Str1)->P
:sum(1,Str2)->L
:randInt(1,5)->R
:BackgroundOn R
:10->X:10->Y:50->Z:50->C
:1000->T
:While T>0 and (X!=Z or Y!=C)
: getKey->K
: X->A:Y->B:Z->M:C->N
: "i know its ugly just STFU"
:
: "player 1"
: If K=34 and pxl-Test(Y+1,X)!=0 :Y+1->Y :End
: If K=24 and pxl-Test(Y,X-1)!=0 :X-1->X :End
: If K=26 and pxl-Test(Y,X+1)!=0 :X+1->X :End
: If K=25 and pxl-Test(Y-1,X)!=0 :Y-1->Y :End
:
: "player 2"
: If K=21 and pxl-Test(C+1,Z)!=0 :C+1->C :End
: If K=31 and pxl-Test(C,Z-1)!=0 :Z-1->Z :End
: If K=41 and pxl-Test(C,Z+1)!=0 :Z+1->Z :End
: If K=32 and pxl-Test(C-1,Z)!=0 :C-1->C :End
:
: "drawsprite"
: If X!=A or Y!=B or Z!=M or C!=N
: BackgroundOn R
: "det(58,P,X,Y)
: "det(58,L,Z,C)
: det(2,224)
: If I=1:FillRectangle(X,Y,1,1):End
: If I=2:FillRectangle(Z,C,1,1):End
: det(10)
: End
: (T-1)->T
:End
:det(1)
:ClrHome
:If X=Z and Y=C
: Output(4,5,"Evader Tagged!")
: Output(5,5,"TAGGER WINS!")
:Else
: Output(4,5,"Time is up!")
: Output(5,5,"EVADER WINS!")
:End
:det(0)
:det(9,1)
:"02020444440444000400"->Str1
:"04040111110111000100"->Str2
:randInt(1,2)->I
:sum(1,Str1)->P
:sum(1,Str2)->L
:randInt(1,5)->R
:BackgroundOn R
:10->X:10->Y:50->Z:50->C
:1000->T
:While T>0 and (X!=Z or Y!=C)
: getKey->K
: X->A:Y->B:Z->M:C->N
: "i know its ugly just STFU"
:
: "player 1"
: If K=34 and pxl-Test(Y+1,X)!=0 :Y+1->Y :End
: If K=24 and pxl-Test(Y,X-1)!=0 :X-1->X :End
: If K=26 and pxl-Test(Y,X+1)!=0 :X+1->X :End
: If K=25 and pxl-Test(Y-1,X)!=0 :Y-1->Y :End
:
: "player 2"
: If K=21 and pxl-Test(C+1,Z)!=0 :C+1->C :End
: If K=31 and pxl-Test(C,Z-1)!=0 :Z-1->Z :End
: If K=41 and pxl-Test(C,Z+1)!=0 :Z+1->Z :End
: If K=32 and pxl-Test(C-1,Z)!=0 :C-1->C :End
:
: "drawsprite"
: If X!=A or Y!=B or Z!=M or C!=N
: BackgroundOn R
: "det(58,P,X,Y)
: "det(58,L,Z,C)
: det(2,224)
: If I=1:FillRectangle(X,Y,1,1):End
: If I=2:FillRectangle(Z,C,1,1):End
: det(10)
: End
: (T-1)->T
:End
:det(1)
:ClrHome
:If X=Z and Y=C
: Output(4,5,"Evader Tagged!")
: Output(5,5,"TAGGER WINS!")
:Else
: Output(4,5,"Time is up!")
: Output(5,5,"EVADER WINS!")
:End