15.01.2015, 15:07
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(playerid, checkpointData[i][exitpointLoc][0], checkpointData[i][exitpointLoc][1], checkpointData[i][exitpointLoc][2]);
SetPlayerInterior(playerid, checkpointData[i][interiorWorld]);
SetPlayerVirtualWorld(playerid, checkpointData[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(playerid, checkpointData[exitTo][enterpointLoc][0], checkpointData[exitTo][enterpointLoc][1], checkpointData[exitTo][enterpointLoc][2]);
SetPlayerInterior(playerid, 0);
SetPlayerVirtualWorld(playerid, 0);
}
}