Temperamental Script - 26 Unsolveable Errors
#2

26 undefined symbol errors usually are caused by an unnecessary bracket }
It closes a function too early, so everything after it is messed up.

In your case the extra bracket is here:

pawn Код:
public StartSMission(playerid)
{
 if(TypeSail[playerid] == 1) // Coastguard
    {
        StartedSMission[playerid] = 1;
        new rand = random(sizeof(SCLocations));
        new string2[65], message[128];
//LINE3981  BELOW
    SetPlayerSailCheckpoint(playerid, SCLocations[rand][LocX],SCLocations[rand][LocY],SLocations[rand][LocZ], 15.0);
        format(string2, sizeof(string2), "%s", SCLocations[rand][LocationName]); //PASSWORD
        strmid(FirstSName[playerid], string2, 0, strlen(string2), 128); //PASSWORD
        //FirstAPName[playerid] = ALocations[rand][LocationName];
        //FirstAPName[playerid] = AndroDName;
        format(message,sizeof(message), "Head to {1B8AE4}%s {FFFFFF}and pick up the cargo goods.", SCLocations[rand][LocationName]);
        SendClientMessage(playerid, COLOR_WHITE, message);
        TypeSail[playerid] = 1;
        MissionSStage[playerid] = 1;
        WantsRecording[playerid] = 1;
        Pos1[playerid] = SCLocations[rand][LocX];
        Pos2[playerid] = SCLocations[rand][LocY];
        Pos3[playerid] = SCLocations[rand][LocZ];
    }
//} // the function is closed here, but theres more code after it
    new Float:DistanceCheckS;
    new Float:SP1, Float:SP2, Float:SP3;
    GetPlayerPos(playerid, SP1, SP2, SP3);
    DistanceCheckS = GetDistanceBetweenPoints(SP1, SP2, SP3,Pos1[playerid],Pos2[playerid],Pos3[playerid]);
    DistanceSail1[playerid] = floatround(DistanceCheckS, floatround_round);
    return 1;
}
If you indent the code correctly you should normally notice bracket problems, as that bracket clearly is on the same level with the function header and so closes it.
Reply


Messages In This Thread
Temperamental Script - 26 Unsolveable Errors - by Ashley - 08.05.2012, 14:46
Re: Temperamental Script - 26 Unsolveable Errors - by Mauzen - 08.05.2012, 14:59
Re: Temperamental Script - 26 Unsolveable Errors - by Ashley - 08.05.2012, 15:05
Re: Temperamental Script - 26 Unsolveable Errors - by Mauzen - 08.05.2012, 15:12

Forum Jump:


Users browsing this thread: 1 Guest(s)