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

[vJASS] Message wont show

Status
Not open for further replies.

Chaosy

Tutorial Reviewer
Level 40
Joined
Jun 9, 2011
Messages
13,219
Just to put it simple, the first message will be displayed but the second one ("after store") will never appear which is really odd since all of those functions should be called.

JASS:
	call BJDebugMsg("pre store")

	call SaveInteger(patrolHash, i, 0, locationCount)
	
	call SaveReal(patrolHash, i, 1, x[1])
	call SaveReal(patrolHash, i, 3, x[2])
	call SaveReal(patrolHash, i, 5, x[3])
	call SaveReal(patrolHash, i, 7, x[4])
	
	call SaveReal(patrolHash, i, 2, y[1])
	call SaveReal(patrolHash, i, 4, y[2])
	call SaveReal(patrolHash, i, 6, y[3])
	call SaveReal(patrolHash, i, 8, y[4])
	
	call BJDebugMsg("after store")
 
Either hash is not initialized or one of following: iterator "i", integer "locationCount" i.e you might have left it as: hashtable patrolHash // without InitHashtable() or meaby you did:
JASS:
// hash is declared
local integer i // not initialized
local integer locationCount // not initialized

call SaveInteger(patrolHash, i, 0, locationCount)
Either way, just check if you have properly defined your variables.
 
Status
Not open for further replies.
Top