HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Need help with integers

11-25-2007, 09:27 PM#1
Eyestrain92
So, I've been putting HOURS of effort into a map I never finished, and right when I think it's done, I find out there's a huge bug with it. I use a lot of integer arrays, and somewhere along the line it only counts [(Player Number (Some kind of function that links it to a player owning a unit)] as player one.

Should I set the integer values before anything? Or do you think theres something wrong with my trig?

In the map, all players are supposed to able to fire the cannon, and adjust it, and if you give anyone but player 1 the items I have associated with dummy units, they don't function. Feel free to look through it to your heart's desire.
Attached Files
File type: w3xTank Wars II 1.1CANNONTRIGS.w3x (338.4 KB)
11-25-2007, 10:24 PM#2
Vexorian
No time to check the map

but (Player number( null / No Player)) returns 0 which means player 1.

In GUI the 0 is converted to 1 by some bridge function.
12-01-2007, 08:27 PM#3
Eyestrain92
Gah, JASS. I just can't seem to understand it.
12-01-2007, 08:32 PM#4
Vexorian
Ok, just notice my reply wasn't really about Jass.