• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.

[JASS] little jass problems...help me guys

Status
Not open for further replies.
Level 9
Joined
Jun 13, 2008
Messages
350
JASS:
library MainFunctions initializer init
    globals
        private item getWalkable=null
    
        private constant integer getWalkable_id='sehr'
    endglobals

    function IsPointWalkable takes real x,real y returns boolean
        call SetItemPosition(getWalkable,x,y)
        call SetItemVisible(getWalkable,false)
        return GetItemX(getWalkable)==x and GetItemY(getWalkable)==y
    endfunction

    private function init takes nothing returns nothing
        set getWalkable=CreateItem(getWalkable_id,0,0)
        call SetItemVisible(getWalkable,false)
    endfunction
endlibrary
I delete this but still not worked
 
Level 9
Joined
Jun 13, 2008
Messages
350
I copy the trigger what spell need.its named mainscript and I do all the things needed but when I saved on jassnewgenpack it underlines the sentence "library MainFunctions initializer init" this is the error.this is the all I can say.
 
Status
Not open for further replies.
Top