Gamestudio Links
Zorro Links
Newest Posts
M1 Oversampling
by Petra. 04/24/24 10:34
Zorro FIX plugin - Experimental
by flink. 04/21/24 07:12
Data from CSV not parsed correctly
by EternallyCurious. 04/20/24 21:39
Scripts not found
by juergen_wue. 04/20/24 18:51
zorro 64bit command line support
by 7th_zorro. 04/20/24 10:06
StartWeek not working as it should
by jcl. 04/20/24 08:38
folder management functions
by VoroneTZ. 04/17/24 06:52
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
5 registered members (Petra, AndrewAMD, Quad, VoroneTZ, 1 invisible), 488 guests, and 3 spiders.
Key: Admin, Global Mod, Mod
Newest Members
Mega_Rod, EternallyCurious, howardR, 11honza11, ccorrea
19048 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,982
Frankfurt
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

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