Gamestudio Links
Zorro Links
Newest Posts
Help with plotting multiple ZigZag
by degenerate_762. 04/30/24 23:23
M1 Oversampling
by 11honza11. 04/30/24 08:16
Trading Journey
by howardR. 04/28/24 09:55
Zorro Trader GPT
by TipmyPip. 04/27/24 13:50
Data from CSV not parsed correctly
by jcl. 04/26/24 11:18
Why Zorro supports up to 72 cores?
by jcl. 04/26/24 11:09
Eigenwerbung
by jcl. 04/26/24 11:08
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
2 registered members (degenerate_762, AndrewAMD), 877 guests, and 5 spiders.
Key: Admin, Global Mod, Mod
Newest Members
wandaluciaia, Mega_Rod, EternallyCurious, howardR, 11honza11
19049 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
S
svenbob Offline OP
Guest
svenbob  Offline OP
Guest
S

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,986
Frankfurt
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

Joined: Jul 2000
Posts: 27,986
Frankfurt
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.


Moderated by  Petra 

Powered by UBB.threads™ PHP Forum Software 7.7.1