18.09.2012, 21:06
(
Последний раз редактировалось Jessyy; 18.09.2012 в 21:59.
)
@MarkoN ...
The Explication:
MY.IDEEA: [Jessyy]
YOUR.IDEEA: [MarkoN]
First case:
Second case:
Third case:
Read this https://sampwiki.blast.hk/wiki/Control_Structures#if ...
Quote:
that means that he must stand near the first and the second at the same time to work...
so it should be pawn Код:
|
Код:
Point 1 = {X1, Y1, Z1}; Point 2 = {X2, Y2, Z2}; Purple colour = "The player" Green colour = "Point 1"; Blue colour = "Point 2"; Red colour = "Intersection of 'Point 1' whit 'Point 2'"
Код:
if(IsPlayerInRangeOfPoint(playerid, 5.0, X1, Y1, Z1) && IsPlayerInRangeOfPoint(playerid, 5.0, X2, Y2, Z2)) { print("YES"); } else { print("NO"); }
Код:
if(IsPlayerInRangeOfPoint(playerid, 5.0, X1, Y1, Z1) || IsPlayerInRangeOfPoint(playerid, 5.0, X2, Y2, Z2)) { print("YES"); } else { print("NO"); }
Quote:
![]() PRINTOUT - MY.IDEEA: "NO" PRINTOUT - YOUR.IDEEA: "YES" |
Quote:
![]() PRINTOUT - MY.IDEEA: "NO" PRINTOUT - YOUR.IDEEA: "YES" |
Quote:
![]() PRINTOUT - MY.IDEEA: "YES" PRINTOUT - YOUR.IDEEA: "YES" |