Autor Tema: "Hello World" wont run (yes, im new to this ^_^)  (Leído 5654 veces)

Mr.Clean

  • Newbie
  • *
  • Mensajes: 11
  • Karma: 0
Re: "Hello World" wont run (yes, im new to this ^_^)
« Respuesta #15 en: Noviembre 04, 2010, 01:07:38 am »
i decided to try out Bennupack like windgate said and got it from:

http://code.google.com/p/colombiandevelopers/downloads/detail?name=TTools%20R.20%20Installer.rar&can=2&q=

after saving test.prg where the exes were i was able to run it. however, when i press Build Exe and run the exe, it opens and closes quickly, is there a way to make the exe stay open, like a pause command or something?

SplinterGU

  • Hero Member
  • *****
  • Mensajes: 12873
  • Karma: 377
Re: "Hello World" wont run (yes, im new to this ^_^)
« Respuesta #16 en: Noviembre 04, 2010, 01:18:33 am »
hi!

please, look this

C:\Documents and Settings\user>C:\Bennu\Bin\bgdc.exe bgdc test.prg

you have an extra "bgdc" in your configuration.

take the suggest that did DCelso, fix your configuration, navegate on configuration options and fix it.
Download Lastest BennuGD Release: http://www.bennugd.org/node/2

SplinterGU

  • Hero Member
  • *****
  • Mensajes: 12873
  • Karma: 377
Re: "Hello World" wont run (yes, im new to this ^_^)
« Respuesta #17 en: Noviembre 04, 2010, 01:19:38 am »
i decided to try out Bennupack like windgate said and got it from:

http://code.google.com/p/colombiandevelopers/downloads/detail?name=TTools%20R.20%20Installer.rar&can=2&q=

after saving test.prg where the exes were i was able to run it. however, when i press Build Exe and run the exe, it opens and closes quickly, is there a way to make the exe stay open, like a pause command or something?

it's ok

you must do a while with a frame after your write, or your game exit.

edit: oh, sorry, you use say, not write, then you can't get anything on screen... say print to console.
Download Lastest BennuGD Release: http://www.bennugd.org/node/2

Mr.Clean

  • Newbie
  • *
  • Mensajes: 11
  • Karma: 0
Re: "Hello World" wont run (yes, im new to this ^_^)
« Respuesta #18 en: Noviembre 04, 2010, 01:29:11 am »
can you show me the syntax?

SplinterGU

  • Hero Member
  • *****
  • Mensajes: 12873
  • Karma: 377
Re: "Hello World" wont run (yes, im new to this ^_^)
« Respuesta #19 en: Noviembre 04, 2010, 05:01:24 am »
begin
write(0,10,10,0,"hello world");
while(!key(_ESC))
frame;
end;
end
Download Lastest BennuGD Release: http://www.bennugd.org/node/2

Mr.Clean

  • Newbie
  • *
  • Mensajes: 11
  • Karma: 0
Re: "Hello World" wont run (yes, im new to this ^_^)
« Respuesta #20 en: Noviembre 04, 2010, 07:49:23 am »
thanks  :D

SplinterGU

  • Hero Member
  • *****
  • Mensajes: 12873
  • Karma: 377
Re: "Hello World" wont run (yes, im new to this ^_^)
« Respuesta #21 en: Noviembre 04, 2010, 02:12:40 pm »
y'r wellcome
Download Lastest BennuGD Release: http://www.bennugd.org/node/2