How Leaks are Exactly ?

bLu3_eYeS

New Member
Reaction score
31
How leaks are exactly?

Code:
Point:
Custom Script: call RemoveLocation(udg_TempPoint)
Unit Group:
Custom Script: call DestroyGroup(udg_UnitGroup)
Region:
Custom Script: call RemoveRect(udg_Region)


Or


Code:
Point:
Custom Script: call RemoveLocation (udg_TempPoint)
Unit Group:
Custom Script: call DestroyGroup (udg_UnitGroup)
Region:
Custom Script: call RemoveRect (udg_Region)

With or without the " ":mad: In some triggers i found with space and in others without...so how exactly they are ?
 

Whisky

New Member
Reaction score
45
If you can find both of those examples of typing leak clearing custom scripts in a working trigger, it is assumable that world editor would disable the trigger and whine about it if something was wrong.

As far as I know, both of the ways work just as well.
 

Romek

Super Moderator
Reaction score
964
> no spaces.
It doesn't make a difference.

JASS:
call RemoveLocation(udg_Loc)

Does the same as:
JASS:
        call            RemoveLocation                 (              udg_Loc            )

Use whichever you prefer.
 

HellCraft

Member
Reaction score
19
You may be getting errors using both because there must be something else wrong in the syntax.
Here is the syntax:
call<space necessary>functionname<space not necessary>(<space not necessary>udg_<variable name, no space between _ and the name><space not necessary>)

So:
call RemoveLocation ( udg_abc ) is fine
and call RemoveLocation(udg_abc) is also fine.
However:
callRemoveLocation(udg_abc) isn't fine.
and call RemoveLocation(udg_ abc) also isn't fine.

EDIT: Also make sure that the spelling of the variable is exactly right, abc is not equal to ABC or AbC, it's case sensitive. Also the R of Remove is capital, L of Location is capital, D of Destroy is capital, G of Group is capital, R of Rect is capital.
 
General chit-chat
Help Users
  • No one is chatting at the moment.

      The Helper Discord

      Staff online

      • Ghan
        Administrator - Servers are fun

      Members online

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top