whats wrong with this jass?

CaptDeath

New Member
Reaction score
103
cause im getting syntax errors in Jass Craft
JASS:
function Stings takes integer A,integer B returns string
		local string Ret
	if A == 0 then
		if B == 0 then
			set Ret = "Basic Mage"
			return Ret
		endif
		if B == 1 then
			set Ret = "Fire Mage"
			return Ret
		endif
	endif	
endfunction

function New_FM takes nothing returns nothing
call BJDebugMsg("Introducing the newest "+Strings(0,1))
endfunction
 

RaiJin

New Member
Reaction score
40
cause im getting syntax errors in Jass Craft
JASS:
function Stings takes integer A,integer B returns string
		local string Ret
	if integer A == 0 then
		if integer B == 0 then
			set Ret = "Basic Mage"
			return Ret
		endif
		if integer B == 1 then
			set Ret = "Fire Mage"
			return Ret
		endif
	endif	
       return null
endfunction

function New_FM takes nothing returns nothing
call BJDebugMsg("Introducing the newest Fire mage "+Strings(0,1))
endfunction

your missing return at the end... it shoul be this
 

CaptDeath

New Member
Reaction score
103
oh it was actually the integer was unnessisairy

also should Strings() work as intended?
 

Viikuna

No Marlo no game.
Reaction score
265
JASS:
function Stings 

call Strings(1,0)


You see it yet?

JASS:
Stings 

Strings
 
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