30.11.2015, 10:40
(
Последний раз редактировалось norton2; 01.12.2015 в 07:44.
)
SOLVED!
AbyssMorgan thank you.
AbyssMorgan thank you.
if(IsPlayerInRangeOfPoint(i, 3.0, 1766.7555,-1895.6991,14.4298) && (pProdType[i] != 6 || GetPVarInt(i, "BoX") != 1))
{
SetPlayerPos(i, 1772.7676,-1895.6788,13.5522);
SendClientMessage(playerid, -1, "Set a position!");
printf("pType: %d", pProdType[i]);
printf("VarpType: %d", GetPVarInt(i, "BoX"));
}
IsPlayerInRangeOfPoint(i, 3.0, 1766.7555,-1895.6991,14.4298) - true
pProdType[i] != 6 - true
GetPVarInt(i, "BoX") != 1 - true
true && (true || true) - true
IsPlayerInRangeOfPoint(i, 3.0, 1766.7555,-1895.6991,14.4298) - true
pProdType[i] != 6 - false
GetPVarInt(i, "BoX") != 1 - true
true && (false || true) - true
if(IsPlayerInRangeOfPoint(i, 3.0, 1766.7555,-1895.6991,14.4298) && pProdType[i] != 6 && GetPVarInt(i, "BoX") != 1){
SetPlayerPos(i, 1772.7676,-1895.6788,13.5522);
SendClientMessage(playerid, -1, "Set a position!");
printf("pType: %d", pProdType[i]);
printf("VarpType: %d", GetPVarInt(i, "BoX"));
}