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.

Author
Message
j1mel
21
Years of Service
User Offline
Joined: 9th Apr 2003
Location:
Posted: 9th Apr 2003 17:34
I download the Db interface builder and when creating zones on ur background image it shows code like

if zoneclicked(x1,y1,x2,y2)
end if

so I try to add this to my db editor

function zoneclicked(x1,y1,x2,y2)
if zoneclicked(0,0,0,0) ***note***(i put in the values to the actual
spot i want)
end
end if
endfunction

But when ran it alwayz comes back with
"Runtime Error: Ran into function declaration"

Could some1 tell me what im doing wrong...im using the Db demo and just started using it along with Db interface. Thx
empty
22
Years of Service
User Offline
Joined: 26th Aug 2002
Location: 3 boats down from the candy
Posted: 9th Apr 2003 19:07 Edited at: 9th Apr 2003 19:09
Make sure the functions are not within the main code.
Example (click on the source button below):

EDIT: the line "[ b]end[ /b]" should read "end" (without quotes)

Ogres have layers.

Login to post a reply

Server time is: 2024-11-24 09:49:50
Your offset time is: 2024-11-24 09:49:50