Register
Log In
Forums
Starting with Zorro
Variable "g" causes error
Forums
Calendar
Active Threads
Search
Forum Help
Gamestudio Links
► Features
► Download
► Online Manual
► Online Tutorial
► Free Resources
► F.A.Q.
Zorro Links
► Download
► Online Manual
► Online Tutorial
► Blog
► Support
► What's New?
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
♪♫♪ [For hire] VOLKOVSTUDIO - Music, SFX, Voice over, implementa
by Volkovstudio. 04/16/24 09:54
AUM Magazine
Latest Screens
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
OP
Guest
svenbob
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
Chief Engineer
jcl
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
Hop To
Gamestudio ------
Starting with Gamestudio
Atari lite-C
Editors & Templates
A8 Engine
Shaders
Third Party Tools
Acknex Users Magazine
The Past
The Future
Zorro ------
Starting with Zorro
Educational
Automated Trading
Zorro Scripts
The Z Systems
Zorro and the Brokers
Zorro Future
Feedback ------
Bug Hunt
Blame the Manual
Ask the Developers
Updates & Announcements
Rants
Game Creation ------
Game Design & Business
Jobs Wanted
Jobs Offered
User Resources
Projects
Showcase
Beyond Games & Money ------
Hilbert's Hotel
Morbius' Virtual Answering Machine
Print Thread
Switch to Threaded Mode
5
Excellent
4
Good
3
Average
2
Bad
1
Terrible
View Profile
Send Private Message
Follow User
Show Forum Posts
View Profile
Send Private Message
View Homepage
Follow User
Show Forum Posts
Default Style
gamestudio
UBBT77
UBBT77 - Dark2
Forum Rules
·
Mark All Read
·
Powered by UBB.threads™ PHP Forum Software 7.7.1