Gamestudio Links
Zorro Links
Newest Posts
Zorro 2.70
by jcl. 09/29/25 09:24
optimize global parameters SOLVED
by dBc. 09/27/25 17:07
ZorroGPT
by TipmyPip. 09/27/25 10:05
assetHistory one candle shift
by jcl. 09/21/25 11:36
Plugins update
by Grant. 09/17/25 16:28
AUM Magazine
Latest Screens
Rocker`s Revenge
Stug 3 Stormartillery
Iljuschin 2
Galactic Strike X
Who's Online Now
3 registered members (NewbieZorro, TipmyPip, 1 invisible), 19,045 guests, and 8 spiders.
Key: Admin, Global Mod, Mod
Newest Members
krishna, DrissB, James168, Ed_Love, xtns
19168 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Function #273211
06/22/09 02:31
06/22/09 02:31
Joined: Jun 2009
Posts: 148
G
gamingfan101 Offline OP
Member
gamingfan101  Offline OP
Member
G

Joined: Jun 2009
Posts: 148
Why wont this program work. It says that "quit_program" wont work, why?

///////////////////////////////
#include <acknex.h>
#include <default.c>

///////////////////////////////

BMAP* stopnorm = "stopncorrect.bmp";
BMAP* stopclick = "stopccorrect.bmp";

///////////////////////////////

PANEL* button_pan =
{
pos_x = 0;
pos_y = 0;
button(0, 0, stopclick, stopnorm, stopnorm, quit_program, NULL, NULL);
flags = OVERLAY | SHOW;
}


Sorry, im new. I have a tendency to ask really simple questions, so please be patient.
Re: Function [Re: gamingfan101] #273212
06/22/09 02:38
06/22/09 02:38
Joined: Jul 2005
Posts: 187
L
lostzac Offline
Member
lostzac  Offline
Member
L

Joined: Jul 2005
Posts: 187
did you write an action or a function for quit_program

function quit_program()
{
sys_exit(NULL);
}


John C Leutz II

Re: Function [Re: lostzac] #273214
06/22/09 02:43
06/22/09 02:43
Joined: Jul 2004
Posts: 1,710
MMike Offline
Serious User
MMike  Offline
Serious User

Joined: Jul 2004
Posts: 1,710
do you have your mouse mode >2?

Re: Function [Re: MMike] #273245
06/22/09 07:53
06/22/09 07:53
Joined: Nov 2008
Posts: 946
T
the_clown Offline
User
the_clown  Offline
User
T

Joined: Nov 2008
Posts: 946
As lostzac said: You need to define that function before!
The script can't perform a function it doesn't know.

Re: Function [Re: the_clown] #273256
06/22/09 08:41
06/22/09 08:41
Joined: Oct 2004
Posts: 4,134
Netherlands
Joozey Offline
Expert
Joozey  Offline
Expert

Joined: Oct 2004
Posts: 4,134
Netherlands
And like MMike says, you need a mouse.


Click and join the 3dgs irc community!
Room: #3dgs
Re: Function [Re: Joozey] #273301
06/22/09 11:41
06/22/09 11:41
Joined: Jun 2009
Posts: 148
G
gamingfan101 Offline OP
Member
gamingfan101  Offline OP
Member
G

Joined: Jun 2009
Posts: 148
ok, thanks! Its working properly now.


Sorry, im new. I have a tendency to ask really simple questions, so please be patient.

Moderated by  HeelX, Lukas, rayp, Rei_Ayanami, Superku, Tobias, TWO, VeT 

Gamestudio download | Zorro platform | shop | Data Protection Policy

oP group Germany GmbH | Birkenstr. 25-27 | 63549 Ronneburg / Germany | info (at) opgroup.de

Powered by UBB.threads™ PHP Forum Software 7.7.1