Gamestudio Links
Zorro Links
Newest Posts
FXCM: "Can't connect to price server"
by jcl. 06/19/19 15:47
Data Execution Prevention Strikes Again
by Dooley. 06/19/19 15:38
by jcl. 06/19/19 14:59
Bring the old grin back!
by Michael_Schwarz. 06/19/19 07:56
Help with calculation
by Qw3rty. 06/18/19 08:01
AUM Magazine
Latest Screens
The Space Between
Pogostuck: Rage With Your Friends
Worst Case Z
AckCon'18 - Lotter vs the World 2 - Preview Release
Who's Online Now
13 registered members (AndrewAMD, Kaga, JeyKey II, Dooley, Grat, kvm, alibaba, Ayumi, MatPed, 1 invisible), 632 guests, and 3 spiders.
Key: Admin, Global Mod, Mod
Newest Members
Qw3rty, Dal, Carson, giantj, dh85
18236 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Variable "g" causes error #477227
06/03/19 13:48
06/03/19 13:48
Joined: Mar 2018
Posts: 3
svenbob Offline OP
svenbob  Offline OP

Joined: Mar 2018
Posts: 3
When I replace in the Workshop1 Script the variable "c" with a "g", I get a "Wrong type..." error. Is this by design?

function main()
var a = 1;
var b = 2;
var g;
g = a + b;
printf("Result = %.f",g);

Re: Variable "g" causes error [Re: svenbob] #477228
06/03/19 14:38
06/03/19 14:38
Joined: Jul 2000
Posts: 26,897
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

Joined: Jul 2000
Posts: 26,897
Yes, it is. That error is caused by using a variable that is already in use. They all can be found in variables.h - and "g" is the most important one.

Gamestudio download | chip programmers | Zorro platform | shop | Data Protection Policy

oP group Germany GmbH | Birkenstr. 25-27 | 63549 Ronneburg / Germany | info (at)

Powered by UBB.threads™ PHP Forum Software 7.7.1