Gamestudio Links
Zorro Links
Newest Posts
Zorro Beta 2.61: PyTorch
by jcl. 06/10/24 14:42
New FXCM FIX Plugin
by flink. 06/04/24 07:30
AlpacaZorroPlugin v1.3.0 Released
by kzhao. 05/22/24 13:41
Free Live Data for Zorro with Paper Trading?
by AbrahamR. 05/18/24 13:28
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
1 registered members (AndrewAMD), 1,529 guests, and 8 spiders.
Key: Admin, Global Mod, Mod
Newest Members
AemStones, LucasJoshua, Baklazhan, Hanky27, firatv
19058 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 | chip programmers | 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