Deleted member 231919
D
Deleted member 231919
Hi, I have been using GUI for a good 10+ years and have finally been trying to move onto using jass with Sharpcraft/WEX.
I had a question about this certain line of code:
I want this line of code to show that text to the owners of whoever owns Hpal, which is the Paladin hero.
But I get this error:
"Cannot convert integer to unit in parameter whichUnit in call to GetOwningPlayer"
I don't understand. Hpal is an integer? How can I make this work? Convert Hpal to a unit? What would the function for converting it be? I am totally new at jass so I don't know a lot about it but I have a good understanding of basic programming.
Thank you for your time in reading/helping.
I had a question about this certain line of code:
JASS:
call DisplayTextToPlayer(GetOwningPlayer('Hpal'), 0, 0, "Hello World")
I want this line of code to show that text to the owners of whoever owns Hpal, which is the Paladin hero.
But I get this error:
"Cannot convert integer to unit in parameter whichUnit in call to GetOwningPlayer"
I don't understand. Hpal is an integer? How can I make this work? Convert Hpal to a unit? What would the function for converting it be? I am totally new at jass so I don't know a lot about it but I have a good understanding of basic programming.
Thank you for your time in reading/helping.