Calculator Community > Grammer

What's wrong with this code ?

<< < (4/6) > >>

Xeda112358:
Yep, if Grammer isn't installed and you try to run the program, it will be run as a BASIC program, so it exits. If it is run as a Grammer program, the first "." tells it that it is a label, so it skips the line.


And here is the code:

--- Code: ---:.0:Return
:31→Y
:47→X
:0→L
:30→M
:1→P
:ClrDraw
:While Y=abs(Y
:Line(0,59,5,96,1
:randInt(0,86
:Line(,59,5,12,2
:1→F
:For(A,1,M
:getKey→K
:If K=10
:Full
:If K=11
:Full0
:K=3
:-K=2
:+Ans+X
:If <86: and !Line(Ans,Y,6,6,15
:→X
:If Y<52: and !Line(X,Y+6,1,6,14
:IS>(Y
:Repeat 1
:Return→Z
:Line(X,Y+1,4,6,2
:Line(X+1,Y,6,4,2
:End
:DispGraph
:prgmZ
:If P xor 1→P
:Tangent(1,8:Y-!!Line(X,Y,7,6,15→Y
:End
:If L+1→L=5: and M>14
:Then
:0→L
:M-1→M/30
:If θ': and P>0
:P-1→P
:End
:End
:Stop

--- End code ---

blg_flg:
Ok. Thank you very much! :) But what's the prgmZ?

Edit: Ah ok the hooks were not activated... --'

persalteas:
Xeda has not activated his hooks.

"prgm" is "call", so, it means "call Z"


Spoiler For Take a look at the wonderful humor of Adriweb: (17:17:08) Adriweb: Yes, Xeda is not a hooker.
(17:17:13) Adriweb: that's it.
(17:17:13) Adriweb runs very far......

Xeda112358:
Yes, sorry, I always forget to activate the token hook XD 'prgm' turns into 'call '

Also, very funny Adriweb >.> :P

persalteas:

--- Quote ---:If <86: and !Line(Ans,Y,6,6,15
--- End quote ---

By this, do you mean "If Ans=/=0 and Ans<86:Line(Ans,etc..." ?

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version