Problem PlayerToPoint Help pls - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Problem PlayerToPoint Help pls (
/showthread.php?tid=431737)
Problem PlayerToPoint Help pls -
Damircro10 - 19.04.2013
i was making a script and i have problem please help me !
Picture
http://zaslike.com/viewer.php?file=q...pyua4yc64s.png
HELP ME PLEASE
HERE IS THE PROBLEM !!
http://pastebin.com/mMvdpgs4
Re: Problem PlayerToPoint Help pls -
HurtLocker - 19.04.2013
Have you added this in your script?
pawn Код:
forward PlayerToPoint(Float:radi, playerid, Float:x, Float:y, Float:z);
public PlayerToPoint(Float:radi, playerid, Float:x, Float:y, Float:z)
{
new Float:oldposx, Float:oldposy, Float:oldposz;
new Float:tempposx, Float:tempposy, Float:tempposz;
GetPlayerPos(playerid, oldposx, oldposy, oldposz);
tempposx = (oldposx -x);
tempposy = (oldposy -y);
tempposz = (oldposz -z);
if (((tempposx < radi) && (tempposx > -radi)) && ((tempposy < radi) && (tempposy > -radi)) && ((tempposz < radi) && (tempposz > -radi)))
{
return 1;
}
return 0;
}
Re: Problem PlayerToPoint Help pls -
zDivine - 19.04.2013
I thought about it, until I saw how you formatted your text on your thread. Then I decided not too because of how immature you sound.
Re: Problem PlayerToPoint Help pls -
Damircro10 - 19.04.2013
Still the same ??
Re: Problem PlayerToPoint Help pls -
Damircro10 - 19.04.2013
im new in scripting so i dont know much !
Re: Problem PlayerToPoint Help pls -
HurtLocker - 19.04.2013
Just remove all kommas from your "if" statement.
Re: Problem PlayerToPoint Help pls -
Damircro10 - 19.04.2013
i fixed that like you tell me player to point but how to fix this error can help me pls
http://prntscr.com/119se7
LOOK
http://pastebin.com/GzHp3vJn
Re: Problem PlayerToPoint Help pls -
HurtLocker - 19.04.2013
I told you, remove all kommas. Do that and we see if it works.
Re: Problem PlayerToPoint Help pls -
Damircro10 - 19.04.2013
Now is this i try everything and not working please help
http://prntscr.com/119v9k
Re: Problem PlayerToPoint Help pls -
Damircro10 - 19.04.2013
THANK YOU SO MUCH YOU HELP ME SO MUCH !!