Author Topic: This code doesn't work D:[Solved]  (Read 3796 times)

0 Members and 1 Guest are viewing this topic.

Offline Yeong

  • Not a bridge
  • LV12 Extreme Poster (Next: 5000)
  • ************
  • Posts: 3739
  • Rating: +278/-12
  • Survivor of Apocalypse
    • View Profile
This code doesn't work D:[Solved]
« on: December 07, 2011, 10:37:20 am »
so I have an appvar that is 100 bytes big, and excluding the first and last bytes, it's filled with zeroes.
Why doesn't this code works?
Code: [Select]
Lbl INV
0→D→E→F→G+80→H
---Drawing stuffs---
Repeat F
!If {W+H+G}
Text(23,24,"1)-------
0→D
End
DispGraph
getKey(54)?1→F
End
Return
It should display 1)------ but it won't.
I tried both zooming and peephole optimizing but neither of them worked.
help?
« Last Edit: December 07, 2011, 10:55:23 am by TBO_Yeong »
Sig wipe!

Offline LincolnB

  • Check It Out Now
  • LV9 Veteran (Next: 1337)
  • *********
  • Posts: 1115
  • Rating: +125/-4
  • By Hackers For Hackers
    • View Profile
Re: This code doesn't work D:
« Reply #1 on: December 07, 2011, 10:38:50 am »
I think the closing parentheses might be hurting you. I'm not sure if Axe does this, but Text(23,24,"1)------- might be registering the same way as Text(23,24,"1")
Completed Projects:
   >> Spacky Emprise   >> Spacky 2 - Beta   >> Fantastic Sam
   >> An Exercise In Futility   >> GeoCore

My Current Projects:

Projects in Development:
In Medias Res - Contest Entry

Talk to me if you need help with Axe coding.


Spoiler For Bragging Rights:
Not much yet, hopefully this section will grow soon with time (and more contests)



Offline Yeong

  • Not a bridge
  • LV12 Extreme Poster (Next: 5000)
  • ************
  • Posts: 3739
  • Rating: +278/-12
  • Survivor of Apocalypse
    • View Profile
Re: This code doesn't work D:
« Reply #2 on: December 07, 2011, 10:43:20 am »
ooh. that will suck :(
but it didn't gave me any error, though.
Sig wipe!

Offline Deep Toaster

  • So much to do, so much time, so little motivation
  • Administrator
  • LV13 Extreme Addict (Next: 9001)
  • *************
  • Posts: 8217
  • Rating: +758/-15
    • View Profile
    • ClrHome
Re: This code doesn't work D:[Solved]
« Reply #3 on: December 07, 2011, 08:01:05 pm »
Have you set Fix 5 anywhere? If not, Text won't draw to the buffer and DispGraph will clear any text on the screen.




Offline Yeong

  • Not a bridge
  • LV12 Extreme Poster (Next: 5000)
  • ************
  • Posts: 3739
  • Rating: +278/-12
  • Survivor of Apocalypse
    • View Profile
Re: This code doesn't work D:[Solved]
« Reply #4 on: December 08, 2011, 07:22:45 am »
The problem was in creating appvar, not this code :]
Sig wipe!