• 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!
  • 🏆 Hive's 6th HD Modeling Contest: Mechanical is now open! Design and model a mechanical creature, mechanized animal, a futuristic robotic being, or anything else your imagination can tinker with! 📅 Submissions close on June 30, 2024. Don't miss this opportunity to let your creativity shine! Enter now and show us your mechanical masterpiece! 🔗 Click here to enter!

jass and jesp spells cannot be in one map?

Status
Not open for further replies.
Level 8
Joined
Jun 13, 2008
Messages
346
hello guys I have a big problem. first of all, I upload two jass spells and works in game but after I upload a good jesp spell and save the map its giving a error.

I don't understand what its say. the error is:


what I gotta do? help me please...
 
Level 40
Joined
Dec 14, 2005
Messages
10,532
Change:

JASS:
function DamagerGroupEnum takes nothing returns nothing
    call GroupAddUnit(bj_groupAddGroupDest, GetFilterUnit())
endfunction

to

JASS:
function DamagerGroupEnum takes nothing returns boolean
    call GroupAddUnit(bj_groupAddGroupDest, GetFilterUnit())
    return false
endfunction

--

If he wasn't using JNGP he wouldn't get this error.
 
Change:

JASS:
function DamagerGroupEnum takes nothing returns nothing
    call GroupAddUnit(bj_groupAddGroupDest, GetFilterUnit())
endfunction

to

JASS:
function DamagerGroupEnum takes nothing returns boolean
    call GroupAddUnit(bj_groupAddGroupDest, GetFilterUnit())
    return false
endfunction

--

If he wasn't using JNGP he wouldn't get this error.

Thats pretty much the same thing I said.
 
Status
Not open for further replies.
Top