2 operators that i don't understand
#5

if i use this:
Код:
	    if(PlayerToPoint(i, 250.0, PosBombX, PosBombY, PosBombZ))
	    {
				SetPlayerMapIcon(i, 13, PosBombX, PosBombY, PosBombZ, 23, 0);
	    }
	    else
	    {
	    	RemovePlayerMapIcon(i, 13);
	    }
it works.

but now i tried this:
Код:
	    PlayerToPoint(i, 250.0, PosBombX, PosBombY, PosBombZ) ? SetPlayerMapIcon(i, 13, PosBombX, PosBombY, PosBombZ, 23, 0) : RemovePlayerMapIcon(i, 13);
and i get this error:
Quote:

warning 215: expression has no effect

i found that here so i thought it'd work ><
http://www.lix.polytechnique.fr/~lib...nditional.html
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)