SA-MP Forums Archive
Polygon 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)
+--- Thread: Polygon Error (/showthread.php?tid=663978)



Polygon Error - IndependentGaming - 16.02.2019

Код:
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(PlayerClosestTempDestinationplayerid, .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(PlayerClosestTempDestinationplayerid, .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 ?


Re: Polygon Error - IndependentGaming - 16.02.2019

Anyone ?


Re: Polygon Error - IndependentGaming - 17.02.2019

Anyone any idea?


Re: Polygon Error - IndependentGaming - 19.02.2019

bump


Re: Polygon Error - ShadowMortar - 19.02.2019

https://sampforum.blast.hk/showthread.php?tid=522253
#include <polygons>