HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Jass Shop Pro Globals

04-14-2006, 03:27 PM#1
The)TideHunter(
Yea yea i know, wrong place to post, but i dident know what catagory it came under, theres lots it could come under, sorry.

Anyways, in Jass shop pro, iv looked everywhere, and never knew how to do it before, but how can i create globals through it, when i test my syntax, i get global errors, because iv not defined them!
I just dunno how to define and create globals without the maps .j

Any help?, thx in advance
04-14-2006, 05:10 PM#2
paidan_fain
Does it matter? I don't know how the compiler in Jass Shop Pro works but if all it does is scan the entire code for syntatical errors (without stopping when it reaches one), then just ignore all errors thrown for undeclared globals.
04-14-2006, 05:42 PM#3
phyrex1an
You put a
Collapse JASS:
globals
    type name
    type name
endglobals
at the top of your script

example

Collapse JASS:
globals
    unit udg_ThatUnit
    integer array udg_AllIntegers
endglobals

Remeber to not paste this to your map, if you do you'll get some errors ^^
04-15-2006, 10:51 AM#4
The)TideHunter(
Thx dude, just what i wanted.
Iv seen it in the .j but thought it only ran in WE properly.
Looks like i underestimated Jass pro shop.

Thx again