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,513 guests, and 5 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
undeclared identifier #338767
08/21/10 14:12
08/21/10 14:12
Joined: May 2010
Posts: 24
Österreich
P
Programm009 Offline OP
Newbie
Programm009  Offline OP
Newbie
P

Joined: May 2010
Posts: 24
Österreich
Ich hab folgendes Problem


Bei meinen Script schreibt das programm immer:
Var undeclared identifier oder
BMAP undeclared identifier oder
function undeclared identifier oder
action undeclared identifier usw

am programm liegt es nicht weil ich habe es mit anderen scripten getesten
der fehler ist aufgetreten als ich einen script includen wollte
jetz functoniert nichts mehr

weis zufällig jemand was da los ist

Re: undeclared identifier [Re: Programm009] #338768
08/21/10 14:32
08/21/10 14:32
Joined: May 2010
Posts: 117
Germany , Dortmund
B
Bone Offline
Member
Bone  Offline
Member
B

Joined: May 2010
Posts: 117
Germany , Dortmund
Hast du eventuell dein include für deine zweite Script Datei

vor #include <acknex.h> gesetzt?

Vielleicht ist das der Fehler

ansonsten zeig mal dein Script an



Last edited by Bone; 08/21/10 14:33.
Re: undeclared identifier [Re: Bone] #338967
08/23/10 11:01
08/23/10 11:01
Joined: May 2010
Posts: 24
Österreich
P
Programm009 Offline OP
Newbie
Programm009  Offline OP
Newbie
P

Joined: May 2010
Posts: 24
Österreich
Der Script


#define PRAGMA_PATH "files/Grafiken_2"
#define PRAGMA_PATH "files"
///////////////////////////////////////////////////////
BMAP* cursor_1 = "cursor_1.tga";
///////////////////////////////////////////////////////
function Men();
function n_spiel();

function quit_program()
{
while (key_any) {wait (1);}
sys_exit(NULL);
}

PANEL* Neues_S =
{
pos_x = 0;
pos_y = 0;
bmap = "neues_s_hint.pcx";
button(30, 540, "back_1.pcx", "back_2.pcx", "back_1.pcx", Men, NULL, NULL);
flags = SHOW;
}

PANEL* Men_1 =
{
pos_x = 0;
pos_y = 0;
bmap = "Hauptbild.pcx";
button(300, 200, "Neues_S_1.pcx", "Neues_S_2.pcx", "Neues_S_1.pcx", n_spiel, NULL, NULL);
button(300, 250, "EXIT_1.pcx", "EXIT_2.pcx", "EXIT_1.pcx", quit_program, NULL, NULL);
}

function Men()
{
Neues_S.flags &= ~SHOW;
Men_1.flags = SHOW;
}

function n_spiel()
{
Men_1.flags &= ~SHOW;
Neues_S.flags = SHOW;
}

function main()
{
video_screen = 1;
mouse_mode = 4;
mouse_map = cursor_1;
Neues_S.flags &= ~SHOW;
wait(-5);
Men_1.flags |= SHOW;
}

Re: undeclared identifier [Re: Programm009] #338968
08/23/10 11:03
08/23/10 11:03
Joined: Aug 2009
Posts: 1,438
Spain
painkiller Offline
Serious User
painkiller  Offline
Serious User

Joined: Aug 2009
Posts: 1,438
Spain
you have to put #include <acknex.h> at the top of your code


3D Gamestudio A8 Pro
AMD FX 8350 4.00 Ghz
16GB RAM
Gigabyte GeForce GTX 960 4GB

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