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
2 registered members (TipmyPip, 1 invisible), 18,789 guests, and 8 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
Syntax error #95146
10/20/06 14:35
10/20/06 14:35
Joined: Aug 2004
Posts: 87
IDontLikeSoccer Offline OP
Junior Member
IDontLikeSoccer  Offline OP
Junior Member

Joined: Aug 2004
Posts: 87
I was update my old 6.31 version of GameStudio with last updates v6.51, and when i run my old code i get error message: syntax error and read only key_x

Here is example:

create(<bonusup.tga>,my.x,exp_display); //Syntax Error

IF (mouse_left == 1) { key_alt = 1; } //Read only key_alt

What i must change in these lines if i want get this code to work?

thanks

Re: Syntax error [Re: IDontLikeSoccer] #95147
10/20/06 14:59
10/20/06 14:59

A
Anonymous
Unregistered
Anonymous
Unregistered
A



Hmmmm, let me think.
Hmmm?? Hmmmm???
Oh YES!! - no
Hmmmmmm, hmmmm....
YAEH!!!!

key_alt is a constant!
And a constant is "read only" that means you can't assign a value to it.

create(...) should be ent_create(...)
<image.bmp> should be "image.bmp" or:

string my_img = <image.bmp>;
ent_create(my_img, ...

mercuryus

PS: can't imaging, this worked with 6.3x


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