HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Can anyone correct this custom text?

11-24-2004, 07:27 PM#1
oNdizZ
Code:
set udg_PsyWave_TempPointDmg[GetConvertedPlayerId(GetOwningPlayer(GetTriggerUnit()))] = PolarProjectionBJ(PolarProjectionBJ(udg_PsyWave_TempPoint[GetConvertedPlayerId(GetOwningPlayer(GetTriggerUnit()))], 200.00, ( udg_PsyWave_TempAngle[GetConvertedPlayerId(GetOwningPlayer(GetTriggerUnit()))] + 270.00 )), ( 100.00 + I2R(GetForLoopIndexA()) ), udg_PsyWave_TempAngle[GetConvertedPlayerId(GetOwningPlayer(GetTriggerUnit()))])


now, i need to destroy that to prevent a memory leak, i've tried with this, but it doesn't work:

Code:
Custom script: call RemoveLocation( udg_PsyWave_TempPointDmg[GetForLoopIndexA()] )


and this is the error message im getting:

Line 16287: Expected a name

call RemoveLocation( udg_udg_PsyWave_TempPointDmg[GetForLoopIndexA()] )


anyone got any idea?
11-24-2004, 07:38 PM#2
a thing
Quote:
Originally Posted by oNdizZ
[code]call RemoveLocation( udg_udg_PsyWave_TempPointDmg[GetForLoopIndexA()] )

I make little mistakes like that a lot >.<

Btw, there is a JASS forum.
11-24-2004, 07:44 PM#3
oNdizZ
Thx! gaah! how stupid of me :)
anyway, i wrote this in GUI in the action "Custom Code" so, it is a part of a trigger, therefore trigger heaven :D