SA-MP Forums

Go Back   SA-MP Forums > SA-MP Scripting and Plugins > Scripting Help

Reply
 
Thread Tools Display Modes
Old 16/02/2019, 02:01 PM   #1
SacrificeGaming
Gangsta
 
SacrificeGaming's Avatar
 
Join Date: Oct 2012
Posts: 679
Reputation: 40
Default Polygon Error

Code:
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 (c) 1997-2006, ITB CompuPhase


4 Errors.
PHP Code:
    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 ?
SacrificeGaming is offline   Reply With Quote
Old 16/02/2019, 05:41 PM   #2
SacrificeGaming
Gangsta
 
SacrificeGaming's Avatar
 
Join Date: Oct 2012
Posts: 679
Reputation: 40
Default Re: Polygon Error

Anyone ?
SacrificeGaming is offline   Reply With Quote
Old 17/02/2019, 10:55 AM   #3
SacrificeGaming
Gangsta
 
SacrificeGaming's Avatar
 
Join Date: Oct 2012
Posts: 679
Reputation: 40
Default Re: Polygon Error

Anyone any idea?
SacrificeGaming is offline   Reply With Quote
Old 19/02/2019, 01:47 PM   #4
SacrificeGaming
Gangsta
 
SacrificeGaming's Avatar
 
Join Date: Oct 2012
Posts: 679
Reputation: 40
Default Re: Polygon Error

bump
SacrificeGaming is offline   Reply With Quote
Old 19/02/2019, 03:28 PM   #5
ShadowMortar
Big Clucker
 
Join Date: Jul 2016
Location: a
Posts: 78
Reputation: 6
Default Re: Polygon Error

https://forum.sa-mp.com/showthread.php?t=522253
#include <polygons>
__________________
Anything I post in filterscript section is not copied from anywhere!
Reputations would be appreciated, so maybe you will be one of them who will help us grow to up!
I am working on a project with two more scrtipers, I am still learning and trying my best.
Current Project: Blueberry Roleplay
Discord: https://discord.gg/aqHae7A
IP: 193.70.65.226:7834
ShadowMortar is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Getting random points in polygon StrikerZ Scripting Help 5 12/11/2017 02:49 PM
[FilterScript] PLEditor - Polygon Editor Chocopie Filterscripts 4 30/12/2016 05:52 AM
Elevator & Polygon Kyle Scripting Help 6 14/06/2013 06:56 PM
Street Addresses (Polygon perhaps?) Knappen Scripting Help 8 22/04/2013 05:14 PM
Polygon/Array Problem RedFusion Scripting Help 7 20/10/2012 08:53 PM


All times are GMT. The time now is 03:21 PM.


Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.