Код:
project.pwn(3112) : error 017: undefined symbol "CreatePolygon"
project.pwn(3112) : warning 215: expression has no effect
project.pwn(3112) : error 029: invalid expression, assumed zero
project.pwn(3112) : error 017: undefined symbol "GrabNodePositions"
project.pwn(3112) : fatal error 107: too many error messages on one line
Compilation aborted.
Pawn compiler 3.10.20160907 Copyright © 1997-2006, ITB CompuPhase
4 Errors.
PHP код:
if(listitem == 0)//m1
{
SetPlayerCheckpoint(playerid,-1310.1714,-2407.3848,32.0838,3);
if(PlayerRoute[playerid][Destination] != -1)
{
DisableGPS(playerid);
}
new PlayerClosest = NearestPlayerNode(playerid);
new TempDestination = NearestNodeFromPoint(-1310.1714,-2407.3848,32.0838);
if(CalculatePath(PlayerClosest, TempDestination, playerid, .CreatePolygon = true, .GrabNodePositions = true))
{
PlayerRoute[playerid][calculating] = true;
SCM(playerid,0xFFFF00FF,"Connecting to sattelite.. please wait.");
}
}
if(listitem == 1)//m2
{
SetPlayerCheckpoint(playerid,-1040.0635,-2286.8508,59.0006,3);
if(PlayerRoute[playerid][Destination] != -1)
{
DisableGPS(playerid);
}
new PlayerClosest = NearestPlayerNode(playerid);
new TempDestination = NearestNodeFromPoint(-1040.0635,-2286.8508,59.0006);
if(CalculatePath(PlayerClosest, TempDestination, playerid, .CreatePolygon = true, .GrabNodePositions = true))
{
PlayerRoute[playerid][calculating] = true;
SCM(playerid,0xFFFF00FF,"Connecting to sattelite.. please wait.");
}
}
I'm trying to run a script that got used in 2014 I have renewed all current used plugins/includes and when I compile the script it gives me those errors. What I'm missing here ?