Gamestudio Links
Zorro Links
Newest Posts
Z9 getting Error 058
by k_ivan. 04/20/26 15:57
Stooq now requires an API key
by jcl. 04/13/26 09:42
Strange "Alien" Skull created with >Knubber<
by NeoDumont. 04/10/26 18:58
400 free seamless texture pack downl. here !
by NeoDumont. 04/08/26 19:55
ZorroGPT
by TipmyPip. 04/08/26 17:08
AUM Magazine
Latest Screens
Dorifto samurai
Shadow 2
Rocker`s Revenge
Stug 3 Stormartillery
Who's Online Now
0 registered members (), 3,785 guests, and 10 spiders.
Key: Admin, Global Mod, Mod
Newest Members
juergenwue, VladMak, Geir, ondrej, mredit
19208 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