Compiling issue
#2

Add this to your gamemode:

pawn Код:
forward PlayerToPoint(Float:radi, playerid, Float:Px, Float:Py, Float:Pz);
public PlayerToPoint(Float:radi, playerid, Float:Px, Float:Py, Float:Pz)
{
    new Float:oldposx, Float:oldposy, Float:oldposz;
    new Float:tempposx, Float:tempposy, Float:tempposz;
    GetPlayerPos(playerid, oldposx, oldposy, oldposz);
    tempposx = (oldposx -Px);
    tempposy = (oldposy -Py);
    tempposz = (oldposz -Pz);
    if (((tempposx < radi) && (tempposx > -radi)) && ((tempposy < radi) && (tempposy > -radi)) && ((tempposz < radi) && (tempposz > -radi)))
    {
        return 1;
    }
    return 0;
}
Second errors with "Safe" is probably an anti-cheat system. With that I can't help you.
Reply


Messages In This Thread
Compiling issue - by seragon95 - 04.01.2010, 16:49
Re: Compiling issue - by introzen - 04.01.2010, 16:55
Re: Compiling issue - by seragon95 - 04.01.2010, 16:58
Re: Compiling issue - by introzen - 04.01.2010, 17:05
Re: Compiling issue - by seragon95 - 04.01.2010, 17:21
Re: Compiling issue - by Correlli - 04.01.2010, 17:24
Re: Compiling issue - by seragon95 - 04.01.2010, 17:26
Re: Compiling issue - by Rory84 - 12.01.2010, 18:21
Re: Compiling issue - by Virtual1ty - 12.01.2010, 18:27

Forum Jump:


Users browsing this thread: 1 Guest(s)