HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Any idea why I am getting this error message for several lines of my script.

07-14-2004, 06:46 PM#1
Sardius
I am doing a bit of changeing of the campaign ai scripts and for some reason I am getting this error on several lines of what ai script I have modified.

Undefined Variable 'user'

and I've added this between the global and endglobal settings of the script to mimic the other ai scripts in that level


player User = Player(1)
07-14-2004, 07:37 PM#2
Guvante
Hmm, I am unsure, as it has been a while since I have read into JASS(rl makes it hard at times :( ) but isn't JASS case sensitive ie:

User /= user

At least, that sounds like where the error is coming from, try changing either the definition (the part in global settings) to user, or your references (the parts in the rest of the script) to User, that way they match
07-16-2004, 04:29 PM#3
PitzerMike
Yes, JASS is case sensitive and when you declare it as User you shouldn't use user