Help!!!

Evote

New Member
Reaction score
4
Leak Check says i haven't removed the varable...
PHP:
TURN
    Events
        Unit - A unit Is issued an order targeting a point
    Conditions
    Actions
        Set TURNING[(Player number of (Triggering player))] = (Target point of issued order)
        Unit - Make (Triggering unit) face TURNING[(Player number of (Triggering player))] over 0.01 seconds
        Custom script:   call RemoveLocation (udg_TURNING[1])
        Custom script:   call RemoveLocation (udg_TURNING[2])
        Custom script:   call RemoveLocation (udg_TURNING[3])
        Custom script:   call RemoveLocation (udg_TURNING[4])
        Custom script:   call RemoveLocation (udg_TURNING[5])
        Custom script:   call RemoveLocation (udg_TURNING[6])

i thought that does
PHP:
Custom script:   call RemoveLocation (udg_TURNING[6])
 

Hero

─║╣ero─
Reaction score
250
Don't always trust leak checker...just make sure you are creating and destroying whatever you can destroy after it has been used..
 
I

IKilledKEnny

Guest
No space between RemoveLocation and (udg_TURNING[X]) . Also Just make it one line like so:

custom script: call RemoveLocation(udg_TURNING[GetPlayerID(GetOwningPlayer(GetTriggerUnit())]
 
I

IKilledKEnny

Guest
My bad:

Code:
call RemoveLocation(udg_TURNING[GetPlayerID(GetOwningPlayer(GetTriggerUnit())][B])[/B]
 
Z

Zell

Guest
Just count your brackets... an opening bracket is +1, a closing bracket is -1. If you get to zero, you're fine. The line just above me has +1, you need more closing brackets!

call RemoveLocation(udg_TURNING[GetPlayerID(GetOwningPlayer(GetTriggerUnit()))])

There, added one more before the square closing bracket.
 
General chit-chat
Help Users
  • No one is chatting at the moment.

      The Helper Discord

      Members online

      No members online now.

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top