Problem PlayerToPoint Help pls
#1

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
Reply
#2

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;
}
Reply
#3

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.
Reply
#4

Still the same ??
Reply
#5

im new in scripting so i dont know much !
Reply
#6

Just remove all kommas from your "if" statement.
Reply
#7

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
Reply
#8

I told you, remove all kommas. Do that and we see if it works.
Reply
#9

Now is this i try everything and not working please help http://prntscr.com/119v9k
Reply
#10

THANK YOU SO MUCH YOU HELP ME SO MUCH !!
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)