[Ajuda] !IsPlayerInPlace
#5

Quote:
Originally Posted by JeffSantos2
View Post
O que o Luan falou й uma soluзгo, mas caso realmente queira usar o IsPlayerInPlace, faзa o seguinte.

Essa й o padrгo da funзгo que vocк postou, XMin = X Minimo, YMin = Y Minimo, XMax = X Maximo e YMax = Y Maximo, e assim por diante.
Code:
stock IsPlayerInPlace(playerid, Float:XMin, Float:YMin, Float:XMax, Float:YMax)
E vocк estб chamando a funзгo da seguinte maneira:
Code:
if(!IsPlayerInPlace(playerid, 1950.638, -2636.443, 1915.860, -2612.534))
Logo temos: XMin = 1950.638, YMin = -2636.443, XMax = 1915.860, YMax = -2612.534
Porйm, 1950.638 e й maior que 1915.860, logo a posiзгo deve ser invertida para:

Code:
if(!IsPlayerInPlace(playerid,  1915.860, -2636.443, 1950.638, -2612.534))
As coordenadas Y estгo corretas, sу inverter as coordenadas X e sucesso.
Obrigado, me ajudou muito!!
Reply


Messages In This Thread
!IsPlayerInPlace - by iAplle - 22.03.2019, 19:13
Re: !IsPlayerInPlace - by ipsLuan - 22.03.2019, 20:33
Re: !IsPlayerInPlace - by JeffSantos2 - 23.03.2019, 03:45
Re: !IsPlayerInPlace - by iAplle - 23.03.2019, 12:34
Re: !IsPlayerInPlace - by iAplle - 23.03.2019, 12:36

Forum Jump:


Users browsing this thread: 1 Guest(s)