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 / function call problems

Author
Message
The klited Judge Dredd
4
Years of Service
User Offline
Joined: 20th Apr 2015
Location:
Posted: 22nd Apr 2015 06:51
hi all i hav i little problem when calling my functions the function call is generatelevel() but when compilling i get this Could not understand command at line 33.
here is the function
function generatelevel()
load image "terrain\scorched.png", 10

make matrix 1, 320, 320, 10, 10
prepare matrix texture 1, 10, 1, 1
load object "weather\sky01\sky01.x", 3
set object collision off 3
position object 3, 160, 0, 160
scale object 3, 5000, 5000, 5000

endfunction
what am i missing all help is welcome

crimes: stupidity sentence: haggis
MrValentine
AGK Backer
8
Years of Service
User Offline
Joined: 5th Dec 2010
Playing: FFVII
Posted: 22nd Apr 2015 16:29 Edited at: 22nd Apr 2015 16:35
Compiles fine... are you sure it is line 33?

What exactly is written on line 33?

Just for the measure change your paths to ".\something\something.ext"

As below



EDIT

A good practice is to use camel casing in function names, but not a necessity

GenerateLevel()

Like so ^

EDIT

Also, Welcome to the world of DBPro and the TGC Forum

Login to post a reply

Server time is: 2019-04-21 12:17:32
Your offset time is: 2019-04-21 12:17:32