• 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.

Return bug problem.

Status
Not open for further replies.
Level 6
Joined
Jun 11, 2009
Messages
151
Please help. +rep.

JASS:
function GetStoredDTAXUnit takes string sMission,string sKey returns unit
	return GetStoredInteger(udg_gc_DTAX_Cache,sMission,sKey)
	return null
endfunction

function GetStoredDTAXPlayer takes string sMission,string sKey returns player
	return GetStoredInteger(udg_gc_DTAX_Cache,sMission,sKey)
	return null
endfunction

function GetStoredDTAXTimer takes string sMission,string sKey returns timer
	return GetStoredInteger(udg_gc_DTAX_Cache,sMission,sKey)
	return null
endfunction

function GetStoredDTAXTrigger takes string sMission,string sKey returns trigger
	return GetStoredInteger(udg_gc_DTAX_Cache,sMission,sKey)
	return null
endfunction

function GetStoredDTAXGroup takes string sMission,string sKey returns group
	return GetStoredInteger(udg_gc_DTAX_Cache,sMission,sKey)
	return null
endfunction

function GetStoredDTAXEffect takes string sMission,string sKey returns effect
	return GetStoredInteger(udg_gc_DTAX_Cache,sMission,sKey)
	return null
endfunction

function GetStoredDTAXLocation takes string sMission,string sKey returns location
	return GetStoredInteger(udg_gc_DTAX_Cache,sMission,sKey)
	return null
endfunction

function GetStoredDTAXTriggerAction takes string sMission,string sKey returns triggeraction
	return GetStoredInteger(udg_gc_DTAX_Cache,sMission,sKey)
	return null
endfunction
 
What's happening? Be a little informative

Well, wait

First off, delete all of those "return null".

You only put multiple returns if they are seperated by then/else.

He's using a modified local handle vars. It used to be used as an attaching system. Local Handle Variables

Anyway, I suggest using hashtables instead, I am not even sure if that stuff is functional anymore. Does it bring up errors or does it just not work? But hashtables are more efficient than gamecache and basically use the same syntax anyway.

You can use this if you want a quick fix:
Faux HandleVars
 
Level 6
Joined
Jun 11, 2009
Messages
151
He's using a modified local handle vars. It used to be used as an attaching system. Local Handle Variables

Anyway, I suggest using hashtables instead, I am not even sure if this stuff is functional anymore. Does it bring up errors or does it just not work?

You can use this if you want a quick fix:
Faux HandleVars

it shows up errors when i delete the return null. :\ if i keep them then it doesnt work.
 
Status
Not open for further replies.
Top