Gamestudio Links
Zorro Links
Newest Posts
WFO Training with parallel cores Zorro64
by Martin_HH. 02/23/26 10:49
ZorroGPT
by TipmyPip. 02/21/26 19:15
Camera always moves upwards?
by clonman. 02/21/26 09:29
Zorro version 3.0 prerelease!
by TipmyPip. 02/20/26 13:22
Sam Foster Sound | Experienced Game Composer for Hire
by titanicpiano14. 02/19/26 13:22
AUM Magazine
Latest Screens
Dorifto samurai
Shadow 2
Rocker`s Revenge
Stug 3 Stormartillery
Who's Online Now
3 registered members (MonsterX, Martin_HH, TipmyPip), 6,282 guests, and 2 spiders.
Key: Admin, Global Mod, Mod
Newest Members
alx, ApprenticeInMuc, PatrickH90, USER0328, Sfrdragon
19199 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
skill undecleared identifier #301665
12/12/09 17:26
12/12/09 17:26
Joined: May 2009
Posts: 445
Peine, Germany
Razoron Offline OP
Senior Member
Razoron  Offline OP
Senior Member

Joined: May 2009
Posts: 445
Peine, Germany
Hello,

first i defined a skill:
Code:
#define upspeed skill99


then i changed the value in another function:
Code:
my.upspeed=speed-60;


and i get the error at the line above: "skill undecleared identifier". do you know why?

Last edited by Razoron; 12/12/09 17:27.
Re: skill undecleared identifier [Re: Razoron] #301666
12/12/09 17:27
12/12/09 17:27
Joined: Feb 2009
Posts: 3,207
Germany, Magdeburg
Rei_Ayanami Offline
Expert
Rei_Ayanami  Offline
Expert

Joined: Feb 2009
Posts: 3,207
Germany, Magdeburg
because skill(s) are defined in acknex.h wink

Re: skill undecleared identifier [Re: Rei_Ayanami] #301669
12/12/09 17:34
12/12/09 17:34
Joined: May 2009
Posts: 445
Peine, Germany
Razoron Offline OP
Senior Member
Razoron  Offline OP
Senior Member

Joined: May 2009
Posts: 445
Peine, Germany
because #include <acknex.h> ist the first line of my code tongue.

Re: skill undecleared identifier [Re: Razoron] #301697
12/13/09 00:09
12/13/09 00:09
Joined: Jul 2008
Posts: 1,178
England
M
MrGuest Offline
Serious User
MrGuest  Offline
Serious User
M

Joined: Jul 2008
Posts: 1,178
England
have you defined 'speed' anywhere?

Re: skill undecleared identifier [Re: MrGuest] #301704
12/13/09 01:11
12/13/09 01:11
Joined: Sep 2003
Posts: 6,861
Kiel (Germany)
Superku Offline
Senior Expert
Superku  Offline
Senior Expert

Joined: Sep 2003
Posts: 6,861
Kiel (Germany)
Code:
///////////////////////////////
#include <acknex.h>
#include <default.c>
///////////////////////////////

#define upspeed skill99

function main() {
   level_load(NULL);
  	wait(1);
	you = ent_create("palette.pcx",nullvector,NULL);
	you.upspeed -= 5;
}



works fine


"Falls das Resultat nicht einfach nur dermassen gut aussieht, sollten Sie nochmal von vorn anfangen..." - Manual

Check out my new game: Pogostuck: Rage With Your Friends
Re: skill undecleared identifier [Re: Superku] #301724
12/13/09 10:42
12/13/09 10:42
Joined: May 2009
Posts: 445
Peine, Germany
Razoron Offline OP
Senior Member
Razoron  Offline OP
Senior Member

Joined: May 2009
Posts: 445
Peine, Germany
Omg, yes i defined speed also as a skill thanks laugh.


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