HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Why are function interfaces unable to take a struct?

07-01-2009, 09:33 AM#1
wraithseeker
Title stated above.

Something like this
Collapse JASS:
function interface test take data d returns nothing

struct data
// whateverstuff and just say that i called the function interface
endstruct

Or would this work?
Collapse JASS:
function interface test takes otherstruct d returns nothing

struct data
// whateverstuff and just say that i called the function interface
endstruct
07-01-2009, 11:46 AM#2
Blubb-Tec
Quote:
Originally Posted by Litany
They are. Whatever problem you're having is somewhere else.
#2. can you post whatever errors you get? that might help fix the problem... oh yeah, as always, make sure you use the most recent version of jasshelper available..
07-01-2009, 12:27 PM#3
Alevice
dont you have to either declare the struct of keyword its name before using it for the interface?
07-01-2009, 01:01 PM#4
Vexorian
Quote:
Originally Posted by Alevice
dont you have to either declare the struct of keyword its name before using it for the interface?
if it is private yes.
07-01-2009, 01:52 PM#5
Eleandor
Had the same problem too, I fixed it by making the interface take an integer instead. Let me know if you find the cause...
07-01-2009, 06:24 PM#6
Anitarf
Quote:
Originally Posted by Eleandor
Had the same problem too, I fixed it by making the interface take an integer instead. Let me know if you find the cause...
The cause was already posted in the two posts before yours.