SA-MP Forums Archive
undefined symbol error - 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)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: undefined symbol error (/showthread.php?tid=169677)



undefined symbol error - Stryke - 20.08.2010

I keep getting this error message and cant get it to go away any help guys?

error 017: undefined symbol "gdebug"

pawn Код:
forward PlayerToPoint (Float:radi, playerid, Float:x, Float:y, Float:z);
public PlayerToPoint(Float:radi, playerid, Float:x, Float:y, Float:z)
{
    if (gdebug >= 3){printf("DEBUG ProxDetectorS()");}
    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);
    //printf("DEBUG: X:%f Y:%f Z:%f",posx,posy,posz);
    if (((tempposx < radi) && (tempposx > -radi)) && ((tempposy < radi) && (tempposy > -radi)) && ((tempposz < radi) && (tempposz > -radi)))
    {
        return 1;
    }
    return 0;
}



Re: undefined symbol error - killer98p - 20.08.2010

I don't know if my suggestion can solve this problem but you can give a try. Download the 0.3b RC4 server package. And then try again. Also you can make create #define gdebug that maybe will help you as it will define the gdebug function which you want create.