Gamestudio Links
Zorro Links
Newest Posts
Free Live Data for Zorro with Paper Trading?
by AbrahamR. 05/18/24 13:28
Change chart colours
by 7th_zorro. 05/11/24 09:25
Data from CSV not parsed correctly
by dr_panther. 05/06/24 18:50
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
4 registered members (degenerate_762, AbrahamR, AndrewAMD, ozgur), 667 guests, and 8 spiders.
Key: Admin, Global Mod, Mod
Newest Members
Hanky27, firatv, wandaluciaia, Mega_Rod, EternallyCurious
19051 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
strange errors #294417
10/19/09 02:21
10/19/09 02:21
Joined: Nov 2008
Posts: 109
J
JGGamer Offline OP
Member
JGGamer  Offline OP
Member
J

Joined: Nov 2008
Posts: 109
I don't understand what is going on here. I am following the manual and don't understand why

I am getting errors.

I used this code:

Code:
if (key_p) & (freeze_mode == 0) 
		{
			freeze_mode = 1;
		}


...and got the error:

Error in 'MAIN' line 100: syntax error

< [][]{ >


Earlier I had tried:

Code:
//The PATH keyword gives directories where template files can be found.
	PATH "C:\Program Files\GStudio7\projects\test";
	PATH "C:\Program Files\GStudio7\projects\test\templates\code";
	PATH "C:\Program Files\GStudio7\projects\test\templates\images";
	PATH "C:\Program Files\GStudio7\projects\test\templates\sounds";
	PATH "C:\Program Files\GStudio7\projects\test\templates\models";


and got this error:

Error in 'MAIN' line 8: 'PATH' undeclared identifier

I also tried:

Code:
// Function for toggling pause mode
function pauseGame()
{
	freeze_mode = 1;
	freeze_mode %= 2; // two switches
}

on_p = pauseGame;



...and nothing happens.
Could someone please help me with what is wrong?

Re: strange errors [Re: JGGamer] #294482
10/19/09 13:33
10/19/09 13:33
Joined: Apr 2006
Posts: 737
Ottawa, Canada
O
Ottawa Offline
User
Ottawa  Offline
User
O

Joined: Apr 2006
Posts: 737
Ottawa, Canada
Hi!


This
if (key_p) & (freeze_mode == 0)
should be

if ((key_p) && (freeze_mode == 0))


Hope this helps!
Ottawa laugh

Ver 7.86.2 Pro and Lite-C
Re: strange errors [Re: Ottawa] #294702
10/20/09 17:37
10/20/09 17:37
Joined: Nov 2008
Posts: 109
J
JGGamer Offline OP
Member
JGGamer  Offline OP
Member
J

Joined: Nov 2008
Posts: 109
Thanks. I'm not getting the error anymore, but the pause function isn't working.
Do I need to use some sort of loop?

Re: strange errors [Re: JGGamer] #294706
10/20/09 18:11
10/20/09 18:11
Joined: Aug 2009
Posts: 46
gfxExp Offline
Newbie
gfxExp  Offline
Newbie

Joined: Aug 2009
Posts: 46
Originally Posted By: JGGamer
Thanks. I'm not getting the error anymore, but the pause function isn't working.
Do I need to use some sort of loop?


you should use on_p = pauseGame; within main function. laugh

Re: strange errors [Re: gfxExp] #294717
10/20/09 18:45
10/20/09 18:45
Joined: Apr 2006
Posts: 737
Ottawa, Canada
O
Ottawa Offline
User
Ottawa  Offline
User
O

Joined: Apr 2006
Posts: 737
Ottawa, Canada
Hi!

This should be changed if your working with Lite-C
Quote:

PATH "C:\Program Files\GStudio7\projects\test\templates\models";



try
#define PRAGMA_PATH "..\\Models";

If you have not already done this,
You should also make your own folder for your models and your works.


Hope this helps!
Ottawa laugh

Ver 7.86.2 Pro and Lite-C

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