error 17 hate them
#1

Code:

Код:
C:\Users\Bongsa\Desktop\ie4mp\gamemodes\zombie.pwn(779) : error 017: undefined symbol "GetPointZPos"
C:\Users\Bongsa\Desktop\ie4mp\gamemodes\zombie.pwn(780) : error 017: undefined symbol "GetPointZPos"
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase
2 Errors.

My line is there
Code:

Код:
{
	new rand1=random(2),rand2=random(2);
	if(rand1==0) Xrand=X+10+float(random(10));
	else Xrand=X-10-float(random(10));

	if(rand2==0) Yrand=Y+10+float(random(10));
	else Yrand=Y-10-float(random(15));

	Zrand=GetPointZPos(Xrand,Yrand,Zrand);
	GetPointZPos(Xrand,Yrand,Zrand);
 	if((Xrand-X)>0&&(Yrand-Y)>0)Angle=atan((Yrand-Y)/(Xrand-X));
  	else Angle=atan((Yrand-Y)/(Xrand-X))-180;
	ApplyAnimation(j,"PED","WOMAN_walkold",3.1,1,1,1,1,0,1);
	FCNPC_SetAngle(j,Angle);
	FCNPC_GoTo(j, Xrand, Yrand, Zrand, MOVE_TYPE_WALK, 1.0, 1);
}
know anyone a fix? I have all plugins and includes "installed"
Reply
#2

which are "all plugins and includes" ?
Reply
#3

That plugins and includes here: https://sampforum.blast.hk/showthread.php?tid=489623
The problem is that i dont know how to define
Quote:

"GetPointZPos"

Reply
#4

download this include and add it to your script manually... it seems as if this was not included, otherwise it wouldn't return that error
Reply
#5

I allready redownload the includes and plugins but still no compile
Reply
#6

did you also add the line
pawn Код:
#include <MapAndreas>
to the top of your script?

alternatively, post the lines of your script that are naming all includes
Reply
#7

Fixed the fix is:
Код:
stock Float: GetPointZPos(const Float: fX, const Float: fY, &Float: fZ = 0.0) {
    if(!((-3000.0 < fX < 3000.0) && (-3000.0 < fY < 3000.0))) {
        return 0.0;
    }
    static
        File: s_hMap
    ;
    if(!s_hMap) {
        s_hMap = fopen("SAfull.hmap", io_read);

        if(!s_hMap) {
            return 0.0;
        }
    }
    new
        afZ[1]
    ;
    fseek(s_hMap, ((6000 * (-floatround(fY, floatround_tozero) + 3000) + (floatround(fX, floatround_tozero) + 3000)) << 1));
    fblockread(s_hMap, afZ);

    return (fZ = ((afZ[0] >>> 16) * 0.01));
}
Reply
#8

which is the code from the include... you simply did not include the include to your script
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)