HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Quick Syntax question

07-16-2004, 06:17 PM#1
mosarani
Code:
call CasterCastAbility( (GetTriggerPlayer( ), 'A00Z', "innerfire", udg_TEMP_UNIT[20], True )

What's wrong with that? It says expected ')'. I'm confused as to how the whole GetTriggerPlayer should look. Please help
07-16-2004, 07:01 PM#2
WarGiant
The number of ( and ) are uneven so one of the ( is not closed.
Either add a ) to the end, or take out the ( right before GetTriggerPlayer( ) and it should work.
07-16-2004, 09:38 PM#3
mosarani
Quote:
Originally Posted by WarGiant
The number of ( and ) are uneven so one of the ( is not closed.
Either add a ) to the end, or take out the ( right before GetTriggerPlayer( ) and it should work.

Ok, then why is this getting an expected '('. Seems there are 3 right facing and 3 left facing parentheses. Sorry for being an idiot -.-
Code:
    call CasterCastAbility( (GetTriggerPlayer( )), 'A00Z', "innerfire", GetEnumUnit, true )
07-16-2004, 10:06 PM#4
KaTTaNa
call CasterCastAbility( (GetTriggerPlayer( )), 'A00Z', "innerfire", GetEnumUnit(), true )

You forgot () after GetEnumUnit