SA-MP Forums Archive
Help please? - 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: Help please? (/showthread.php?tid=557909)



Help please? - aCloudy - 15.01.2015

I get this error whenever i compile, I don't know what is the problem.

Code:
C:\Program Files\lvcnrr\gamemodes\LVCNR1.pwn(171) : error 001: expected token: "}", but found "{"
C:\Program Files\lvcnrr\gamemodes\LVCNR1.pwn(15907) : error 017: undefined symbol "checkpointIndex"
C:\Program Files\lvcnrr\gamemodes\LVCNR1.pwn(15907) : warning 215: expression has no effect
C:\Program Files\lvcnrr\gamemodes\LVCNR1.pwn(15907) : error 001: expected token: ";", but found "]"
C:\Program Files\lvcnrr\gamemodes\LVCNR1.pwn(15907) : error 029: invalid expression, assumed zero
C:\Program Files\lvcnrr\gamemodes\LVCNR1.pwn(15907) : fatal error 107: too many error messages on one line

Compilation aborted.Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


5 Errors.
PHP Code:
if(checkpointid == checkpointIndex[i][0]) //This line is line 15907 (The errors line)
            
{
                
reducedValue tickCountResult playerCPtime[playerid];
                if(
reducedValue 3000)
                {
                    
playerCPtime[playerid] = GetTickCount();
                    
SetPlayerPos(playeridcheckpointData[i][exitpointLoc][0], checkpointData[i][exitpointLoc][1], checkpointData[i][exitpointLoc][2]);
                    
SetPlayerInterior(playeridcheckpointData[i][interiorWorld]);
                    
SetPlayerVirtualWorld(playeridcheckpointData[i][virtualWorld]);
                    
lastEnteredID[playerid] = i;
                }
            }
            if(
checkpointid == checkpointIndex[i][1])
            {
                
reducedValue tickCountResult playerCPtime[playerid];
                if(
reducedValue 3000)
                {
                    new 
exitTo lastEnteredID[playerid];
                    
playerCPtime[playerid] = GetTickCount();
                    
SetPlayerPos(playeridcheckpointData[exitTo][enterpointLoc][0], checkpointData[exitTo][enterpointLoc][1], checkpointData[exitTo][enterpointLoc][2]);
                    
SetPlayerInterior(playerid0);
                    
SetPlayerVirtualWorld(playerid0);
                }
            } 



Re: Help please? - Ironboy - 15.01.2015

checkpointIndex isn't defined, show the other line too.


Re: Help please? - aCloudy - 15.01.2015

Quote:
Originally Posted by Ironboy
View Post
checkpointIndex isn't defined, show the other line too.
If i add this line, I get these 5 errors:
This is line 171.. (first error line)
PHP Code:
    {34, {13515.15915,150150.151,11.00}, {203.9812,-50.5278,1001.3544}, {204.1124,-41.2807,1001.7745}, 110003700451"Suburban"0//Line 171 

And checkpointIndex is defined:
PHP Code:
checkpointIndex[MAX_ROB_CHECKPOINT][3], 



Re: Help please? - aCloudy - 15.01.2015

Sorry for Bump ?!