Gamestudio Links
Zorro Links
Newest Posts
Free Live Data for Zorro with Paper Trading?
by AbrahamR. 05/18/24 05:41
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
2 registered members (AbrahamR, AndrewAMD), 1,278 guests, and 2 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
some define trouble #166779
11/10/07 02:55
11/10/07 02:55
Joined: Sep 2007
Posts: 49
O
onslaught147 Offline OP
Newbie
onslaught147  Offline OP
Newbie
O

Joined: Sep 2007
Posts: 49
for some reason when ever i try to define anything the script compiler shows a error. ive tried
define test;
DEFINE test;
define* test;
DEFINE* test;
And evertime the same message comes up
"Error in 'MAIN' line 16: 'define' undeclared identifier
so does anyone know what i should do? could it be i didnt #include the proper file? well any help will be greatly appreciated.ty


The only thing in life you can depend on is death and taxes.
Re: some define trouble [Re: onslaught147] #166780
11/10/07 15:46
11/10/07 15:46
Joined: Jul 2007
Posts: 959
nl
F
flits Offline
User
flits  Offline
User
F

Joined: Jul 2007
Posts: 959
nl
i am not sure but dont you need 2 string for define

like define my.skill1 , test;


"empty"
Re: some define trouble [Re: flits] #166781
11/10/07 19:34
11/10/07 19:34
Joined: Sep 2007
Posts: 49
O
onslaught147 Offline OP
Newbie
onslaught147  Offline OP
Newbie
O

Joined: Sep 2007
Posts: 49
tat doesnt work either thnx for trying though but i still have the same problem which is very annoying


The only thing in life you can depend on is death and taxes.
Re: some define trouble [Re: onslaught147] #166782
11/10/07 22:18
11/10/07 22:18
Joined: Mar 2007
Posts: 677
0x00000USA
M
MrCode Offline
User
MrCode  Offline
User
M

Joined: Mar 2007
Posts: 677
0x00000USA
You need to use a fixed number with your defined names.

For instance:

Code:

//C-Script:
define NUMBER, 20;

//Lite-C:
#define NUMBER 20




Code:
void main()
{
    cout << "I am MrCode,";
    cout << "hear me roar!";
    system("PAUSE");
}
Re: some define trouble [Re: MrCode] #166783
11/11/07 23:29
11/11/07 23:29
Joined: Sep 2007
Posts: 49
O
onslaught147 Offline OP
Newbie
onslaught147  Offline OP
Newbie
O

Joined: Sep 2007
Posts: 49
thnx MrCode the error doesnt come up any more so now i can implement it except when i look it up in the manual the only tests i see is if it is defined or not is there a vay to transfer certian numbers like for 1 to watever or do i have to settle for the 1 0, on off, tests?


The only thing in life you can depend on is death and taxes.

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