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
1 registered members (TipmyPip), 18,449 guests, and 6 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
Question about SED 6.51.2 #128551
05/08/07 00:27
05/08/07 00:27
Joined: Feb 2006
Posts: 126
USA,
manic7creations Offline OP
Member
manic7creations  Offline OP
Member

Joined: Feb 2006
Posts: 126
USA,
I have just started scripting with the SED. I am very new to this stuff. I know how to code, but when I have a bug in my code with the SED 6.51.2 it brings up an error message and quits when I click on the ok button. This problem happens sometimes, but not all the time. Is there like a fix to this bug, or is it something wrong with my operating system. The error hadn't came up again, but when it does I will take a picture of it.

Thanks,

Chris

Re: Question about SED 6.51.2 [Re: manic7creations] #128552
05/08/07 15:56
05/08/07 15:56
Joined: Feb 2006
Posts: 126
USA,
manic7creations Offline OP
Member
manic7creations  Offline OP
Member

Joined: Feb 2006
Posts: 126
USA,
Here is the code that is causing the bug:

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

var video_mode = 7; // 800x600 pixels
var video_depth = 32; // 32 bit mode
var x1;
var y1;

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

bmap mouse_pcx = <mouse.pcx>; // bitmap used for the mouse pointer
bmap main_pcx = <main.pcx>; // main panel
bmap quitclicked_pcx = <quitclicked.pcx>;
bmap quitnormal_pcx = <quitnormal.pcx>;
bmap quitover_pcx = <quitover.pcx>;

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

string work05_wmb = <work05.wmb>;

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

function main()
{
level_load (work05_wmb);
mouse_map = mouse_pcx;
mouse_mode = 2;
while (1)
{
mouse_pos.x = pointer.x;
mouse_pos.y = pointer.y;

x1 = mouse_pos.x;
y1 = mouse_pos.y
wait (1);
}
}

function quit_program()
{
sleep (3);
exit;
}

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

panel main_pan
{
bmap = main_pcx;
pos_x = x1;
pos_y = y1;
button = 250, 200, quitclicked_pcx, quitnormal_pcx, quitover_pcx, quit_program, null, null;
flags = overlay, refresh, visible;
}


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