www.gmindo.web.id/forum
Forum ini sudah tidak dipakai lagi. Silakan ke forum baru di www.gmindo.web.id/forum Very Happy

Terima kasih

Join the forum, it's quick and easy

www.gmindo.web.id/forum
Forum ini sudah tidak dipakai lagi. Silakan ke forum baru di www.gmindo.web.id/forum Very Happy

Terima kasih
www.gmindo.web.id/forum
Would you like to react to this message? Create an account in a few clicks or log in to continue.

(ASK) Out Of Bound Error

2 posters

Go down

(ASK) Out Of Bound Error Empty (ASK) Out Of Bound Error

Post by Zihad Rizky Edwin Fikri Thu 20 Feb 2014, 15:10

Toloooooooooooong, dah ngotak-ngatik tapi ga tau kenapa error

zihadrizkyef.mywapblog.com/files/out-of-bound.zip
Zihad Rizky Edwin Fikri
Zihad Rizky Edwin Fikri
GM Beginner
GM Beginner

55%
Jumlah posting : 409
Points : 431
Join date : 12.05.13
Age : 26
Lokasi : jaktim

Kembali Ke Atas Go down

(ASK) Out Of Bound Error Empty Re: (ASK) Out Of Bound Error

Post by Kevin Blaze Coolerz Thu 20 Feb 2014, 18:32

Create:
Code:
n=0
numb[n]=0
keyboard_lastchar='1'

Global Left Pressed:
Code:
if n<sprite_get_number(sprite0)
{
n+=1
numb[n]=real(keyboard_lastchar)
}

Draw:
Code:
for(i=1;i<=n;i+=1){
draw_sprite(sprite0,numb[i],0,(i-1)*31)}

inti ny, code di left pressed yg salah, hrus ny n+=1 di tulis dlu,, krna di draw event akan lngsung detek jmlah n, dan dlm seketika array numb[n] akan di call. hsil ny error krna numb[n] terakhir blum ad nilai
Kevin Blaze Coolerz
Kevin Blaze Coolerz
Admin
Admin

100%
Jumlah posting : 3323
Points : 3795
Join date : 06.01.13
Age : 29
Lokasi : Palembang

http://kevin-blaze-coolerz.blogspot.com/

Kembali Ke Atas Go down

(ASK) Out Of Bound Error Empty Re: (ASK) Out Of Bound Error

Post by Zihad Rizky Edwin Fikri Thu 20 Feb 2014, 21:55

Work bro Very Happy
tapi kenapa kalo errornya di ignore munculnya berkali-kali? Harusnya kan sekali aja, karena kan setelah di tambah 1, numb[n]=real(keyboard_lastchar)
Zihad Rizky Edwin Fikri
Zihad Rizky Edwin Fikri
GM Beginner
GM Beginner

55%
Jumlah posting : 409
Points : 431
Join date : 12.05.13
Age : 26
Lokasi : jaktim

Kembali Ke Atas Go down

(ASK) Out Of Bound Error Empty Re: (ASK) Out Of Bound Error

Post by Kevin Blaze Coolerz Thu 20 Feb 2014, 22:18

krna di draw event.
ok deh kalo gitu

Solved=Locked
Kevin Blaze Coolerz
Kevin Blaze Coolerz
Admin
Admin

100%
Jumlah posting : 3323
Points : 3795
Join date : 06.01.13
Age : 29
Lokasi : Palembang

http://kevin-blaze-coolerz.blogspot.com/

Kembali Ke Atas Go down

(ASK) Out Of Bound Error Empty Re: (ASK) Out Of Bound Error

Post by Sponsored content


Sponsored content


Kembali Ke Atas Go down

Kembali Ke Atas

- Similar topics

 
Permissions in this forum:
Anda tidak dapat menjawab topik