Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Newcomers DBPro Corner / Problem with a function

Author
Message
Mr X
19
Years of Service
User Offline
Joined: 25th Sep 2005
Location: Universe, milkyway, sol-system, Earth...
Posted: 11th May 2006 20:20 Edited at: 11th May 2006 20:24
Hi all.

I got a problem with this function. For some strange reason, the compiler think the "endfunction" command is out of place. Can anyone help me to fix the problem?



EDIT:

The function controls how you fire, and how long time it takes to be able to fire the next bullet. The problems came up after I shanged it from
to the code you see above, if it helps.
spooky
22
Years of Service
User Offline
Joined: 30th Aug 2002
Location: United Kingdom
Posted: 11th May 2006 22:05
There is no such command as ELSE IF, so you are in fact missing an ENDIF. Count 'em. you have 3 IF's in first code block, but only 2 ENDIF's



Boo!
Mr X
19
Years of Service
User Offline
Joined: 25th Sep 2005
Location: Universe, milkyway, sol-system, Earth...
Posted: 12th May 2006 13:10 Edited at: 12th May 2006 13:11
Lol, I my mistake. Ive read too many tutorials on other languages (C++ and C#).

And that pointless "else" is because I still have one weapon to introduce.

Login to post a reply

Server time is: 2024-11-27 19:46:39
Your offset time is: 2024-11-27 19:46:39