Prowler Productions
  Dink Smallwood Forum
  Procedures and external command

Post New Topic  
profile | register | faq

Author Topic:   Procedures and external command
Kornelije Petak posted 01-15- 02:36 PM CT (US)   Click Here to See the Profile for Kornelije Petak   Click Here to Email Kornelije Petak  
I created functs.c and placed this in it:

void scene()
{
draw_screen();
&update_status = 1;
draw_status();
}

Then in other script I did this line

external("functs","scene");

What happened? It didn't show status bar.Then I replaced external("functs","scene"); with

draw_screen();
&update_status = 1;
draw_status();

and deleted scene() proc from functs.c and then it all works... where is the problem...

isn't this supposed to be the same???

Tamtur posted 01-15- 03:42 PM CT (US)     Click Here to See the Profile for Tamtur  Click Here to Email Tamtur     
I haven't tried this myself, but I looked in emake.c (which is the script that is called for the rewards that appear when monsters are killed) and the only difference I saw is that there is a return line at the end. So, if I'm right, yours should read:

void scene()
{
draw_screen();
&update_status = 1;
draw_status();
return;
}

Good luck

Tamtur

redink1 posted 01-15- 06:34 PM CT (US)     Click Here to See the Profile for redink1  Click Here to Email redink1     
Though this is probably wrong, try:

void scene(void)

Post New Topic  Post Reply
Hop to:


Contact Us | Prowler Productions

Powered by: Ultimate Bulletin Board, Freeware Version 5.10a
Purchase our Licensed Version- which adds many more features!
© Infopop Corporation (formerly Madrona Park, Inc.), 1998 - 2000.