Gamestudio Links
Zorro Links
Newest Posts
What are you working on?
by 3run. 09/19/19 09:42
Any chance of PBR materials with A8?
by Quad. 09/18/19 18:00
Sierra Chart Plugin
by AndrewAMD. 09/18/19 14:03
3d model editor
by karmacomposer. 09/18/19 13:18
Can MED export to FBX?
by karmacomposer. 09/18/19 13:07
I cannot get the A8 game engine to show anything
by karmacomposer. 09/18/19 12:38
Script, Start Trading Immediately
by jcl. 09/18/19 08:38
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
12 registered members (Ayumi, 3run, AndrewAMD, Quad, saulius, 20BN, kvm, MatPed, 3 invisible), 613 guests, and 7 spiders.
Key: Admin, Global Mod, Mod
Newest Members
Dark_Light, oxygenjoe, web20tpo, tarekhazem, Juanjo
18290 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: 27,006
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

Joined: Jul 2000
Posts: 27,006
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