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 AppGameKit Corner / This function isn't working

Author
Message
tiffit
9
Years of Service
User Offline
Joined: 1st Feb 2015
Location:
Posted: 5th Mar 2015 04:10
So, why exactly does this not work?



its giving me an error on return r
BatVink
Moderator
21
Years of Service
User Offline
Joined: 4th Apr 2003
Location: Gods own County, UK
Posted: 5th Mar 2015 15:46
it should be

exitfunction r

Quidquid latine dictum sit, altum sonatur
Mike Archer
9
Years of Service
User Offline
Joined: 19th Feb 2015
Location: Wales
Posted: 5th Mar 2015 16:56
ExitFunction is used to exit a function early and return a value. However it will only work if the function itself also returns the same data type at the end. The correct thing to do is to return r in the endfunction.

The code needs to read...

Login to post a reply

Server time is: 2024-05-02 23:31:50
Your offset time is: 2024-05-02 23:31:50