do
cls
`connect to my ftp server
ftp connect "192.168.0.211","Dom","********"
ftp set dir "UPDATES"
set dir ".."
set dir "UPDATES"
`paste the update screen
paste image 1,0,0
text 17,175,string$
`make update bar
sprite 2,25,120,12
stretch sprite 2,barx#,100
inc barx#,0.5
if barx# => 100
barx# = 100
endif
if checkupdates() = 1
string$ = "Updates found, press any key to download"
wait key
downloadupdate()
endif
if checkupdates() = 0
text 17,190,"No Updates found"
text 17,205,"Updates completed...press any key to continue"
delete file "loa_updates.upd"
rename file "loa_updates2.upd","loa_updates.upd"
wait key
`login()
ftp disconnect
endif
sync
loop
OK heres whats wrong when I run the code...
First it starts of as a black box and the only way to get it to display something is by opening another window and then opening the apps window again.
Then when it finally displays something all it says is Looking for Updates. It doesnt change and say updates found..., updates not found etc. But if you keep tapping any button the other text does flash up for a split second. I cant figure out whats going on here! Please help!
"A book. I hate books. book is stupid." -- Some lame idiot
Formerly Saberdude --DFStudios--