26.12.2012, 21:29
El "||" es para "o" mientras el "&&" es para "y". "!IsPlayerInRangeOfPoint" significa que el jugador no esta "InRangeOfPoint" (lo siento, no hablo mucho espanol ^^). Entonces cuando escribes "if(!IsPlayerInRangeOfPoint(playerid, 2.0, x, y, z) || !IsPlayerInRangeOfPoint(playerid, 2.0, x, y, z) )" tu script entiendes "si el jugador no esta acerca del punto 1 O si no esta acerca del punto 2...", mientras que, si he entendido bien quieras "si el jugador no esta acerca del punto 1 Y no esta acerca del punto 2". Entonces :
Debra funcionar si he entendido correctamente lo que querias hacer
pawn Код:
if(!IsPlayerInRangeOfPoint(playerid, 2.0, x, y, z) && !IsPlayerInRangeOfPoint(playerid, 2.0, x, y, z) && !IsPlayerInRangeOfPoint(playerid, 2.0, x, y, z) && !IsPlayerInRangeOfPoint(playerid, 2.0, x, y, z)) return SendClientMessage(playerid, -1, " [!] no estas en la posicion exacta!.");
