Invalid number of Arguments

1

1plus1equals

Guest
Im currently trying to learn JASS, so im experimenting with different things. Right now, im trying to make a trigger that, when a unit uses the ability "Infernal", an Archimonde will appear as well, but when i try to save it, it says "Invalid number of arguments" for this line :
call CreateUnitAtLoc ( GetOwningPlayer ( cast ), 'Uwar', GetSpellTargetLoc ( u ), 0.00 ))
(the variables: cast = GetTriggerUnit () u = GetSpellTargetLoc () ). What does that mean and how can I fix this?
 
1

1plus1equals

Guest
Aaah thats actually a typo o_O the extra ) isnt actually there ^^;
 

Sim

Forum Administrator
Staff member
Reaction score
534
Shouldn't he use the "u" variable that is already GetSpellTargetLoc() ?

Anyways, don't forget to destroy your location and null your "cast" and "u" variables after. Leaks.
 
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