| 04-08-2007, 02:11 AM | #1 |
Code:
if IsPointInQuadFast(GetUnitX(u),GetUnitY(u),x[1],y[1],x[2],y[2],x[3],y[3],x[4],y[4]) then
call DisplayTextToForce( GetPlayersAll(), "Adding: "+GetUnitName(u))
call GroupAddUnit(g,u)
//My debugging code
if (IsUnitGroupEmptyBJ(g) == true) then
call DisplayTextToForce( GetPlayersAll(), "empty g 2")
endif
//end debugging code
endifthe first long IF statement is true, it displays "Adding: "unit name", then it does the "call GroupAddUnit", but the IsUnitGroupEmpty check winds up being true, what am I missing... |
| 04-08-2007, 02:12 AM | #2 |
Did you initialize g? Err actually then IsUnitGroupEmptyBJ() would probably get angry and wouldn't return true, so nevermind. |
| 04-08-2007, 02:15 AM | #3 |
yeah, lemme mention that G is passed in to this function ***edit*** sob.... g was null in the parent function, no wonder I couldn't figure out why my child wasnt working, I was doomed from the start... thnx for the idea |
