| 01-07-2009, 01:46 AM | #1 | |
Can someone explain to me how this can occur? I would assume it's some kind of bug. This is how it looks like. JASS:code... //this runs if (conditions) then //this doesn't run if (conditions) then //this doesn't run else //this runs endif //this runs endif code...//this runs Real code (yes it is messy)
Yes I changed some names, but that shouldn't matter. |
| 01-07-2009, 04:15 AM | #2 |
is * a valid character for names? I wouldn't think it would work (unless that denotes a name change). |
| 01-07-2009, 08:09 AM | #3 |
Asterics (*) is not valid char for vars and functions. |
| 01-07-2009, 12:56 PM | #4 | |
Quote:
There are no syntax errors, only run-time errors. |
| 01-07-2009, 01:03 PM | #5 |
The syntax checker can fuckup sometimes. |
| 01-07-2009, 01:08 PM | #6 | |||||||||||||||
Well what could be wrong then? The code almost runs perfectly fine as long as the first one does not equal to false. There are 4 scenarios: Table:
EDIT: Okey something is heavily wrong with the code at Mark 3.. Currently it looks like: JASS:
else
//Mark 3
call some_SimError(GetOwningPlayer(someUnit), "*")
call BJDebugMsg("This does show")
endif JASS:
else
//Mark 3
call BJDebugMsg("This does show")
call some_SimError(GetOwningPlayer(someUnit), "*")
endifWhy does the first example show, but the second does not? EDIT2: Ok the problem seems solved atm, the problem was that if the item "GetManipulatedItem()" was removed before the code the first if statement returned true. The code currently works as supposed to. However, that does not explain the very odd errors I had before. |
