08.05.2012, 14:46
Hey,
I've been at this since last night now, my script is being really tempermental, it'll throw 26 errors at me, and sometimes 9 if I change a certain text from SC Locations to SLocations, even though in my script I use SCLocations.
With the correct thing being at SCLocations, I get these errors:
But changing it to SLocations and leaving the others at SCLocations gives me these;
The lines I'm playing with are here:
But when deleting that whole chunk from my script I get the 9 errors above again..
I'm confused because SetPlayerPosObf is defined in my script at the top and I've never had this before, I've checked for missing brackets etc.. but to no avail.
I'm not sure what lines are going to be needed to check elsewhere in the script as the lines it references to doesn't contain the SetPlayerPosObf, so let me know.
REP to anyone that can help me solve this.
I've been at this since last night now, my script is being really tempermental, it'll throw 26 errors at me, and sometimes 9 if I change a certain text from SC Locations to SLocations, even though in my script I use SCLocations.
With the correct thing being at SCLocations, I get these errors:
Код:
C:\Documents and Settings\Admin\Desktop\The Way of Life\gamemodes\WoL.pwn(3648) : error 017: undefined symbol "SetPlayerPosObf" C:\Documents and Settings\Admin\Desktop\The Way of Life\gamemodes\WoL.pwn(3797) : error 017: undefined symbol "SetPlayerPosObf" C:\Documents and Settings\Admin\Desktop\The Way of Life\gamemodes\WoL.pwn(3821) : error 017: undefined symbol "SetPlayerPosObf" C:\Documents and Settings\Admin\Desktop\The Way of Life\gamemodes\WoL.pwn(3844) : error 017: undefined symbol "SetPlayerPosObf" C:\Documents and Settings\Admin\Desktop\The Way of Life\gamemodes\WoL.pwn(3868) : error 017: undefined symbol "SetPlayerPosObf" C:\Documents and Settings\Admin\Desktop\The Way of Life\gamemodes\WoL.pwn(3998) : error 021: symbol already defined: "GetPlayerPos" C:\Documents and Settings\Admin\Desktop\The Way of Life\gamemodes\WoL.pwn(4001) : error 010: invalid function or declaration C:\Documents and Settings\Admin\Desktop\The Way of Life\gamemodes\WoL.pwn(11728) : error 017: undefined symbol "SetPlayerPosObf" C:\Documents and Settings\Admin\Desktop\The Way of Life\gamemodes\WoL.pwn(11876) : error 017: undefined symbol "SetPlayerPosObf" C:\Documents and Settings\Admin\Desktop\The Way of Life\gamemodes\WoL.pwn(11888) : error 017: undefined symbol "SetPlayerPosObf" C:\Documents and Settings\Admin\Desktop\The Way of Life\gamemodes\WoL.pwn(12149) : error 017: undefined symbol "SetPlayerPosObf" C:\Documents and Settings\Admin\Desktop\The Way of Life\gamemodes\WoL.pwn(12164) : error 017: undefined symbol "SetPlayerPosObf" C:\Documents and Settings\Admin\Desktop\The Way of Life\gamemodes\WoL.pwn(14701) : error 017: undefined symbol "SetPlayerPosObf" C:\Documents and Settings\Admin\Desktop\The Way of Life\gamemodes\WoL.pwn(14767) : error 017: undefined symbol "SetPlayerPosObf" C:\Documents and Settings\Admin\Desktop\The Way of Life\gamemodes\WoL.pwn(14858) : error 017: undefined symbol "SetPlayerPosObf" C:\Documents and Settings\Admin\Desktop\The Way of Life\gamemodes\WoL.pwn(16872) : error 017: undefined symbol "SetPlayerPosObf" C:\Documents and Settings\Admin\Desktop\The Way of Life\gamemodes\WoL.pwn(16884) : error 017: undefined symbol "SetPlayerPosObf" C:\Documents and Settings\Admin\Desktop\The Way of Life\gamemodes\WoL.pwn(16897) : error 017: undefined symbol "SetPlayerPosObf" C:\Documents and Settings\Admin\Desktop\The Way of Life\gamemodes\WoL.pwn(16952) : error 017: undefined symbol "SetPlayerPosObf" C:\Documents and Settings\Admin\Desktop\The Way of Life\gamemodes\WoL.pwn(18618) : error 017: undefined symbol "SetPlayerPosObf" C:\Documents and Settings\Admin\Desktop\The Way of Life\gamemodes\WoL.pwn(18676) : error 017: undefined symbol "SetPlayerPosObf" C:\Documents and Settings\Admin\Desktop\The Way of Life\gamemodes\WoL.pwn(25277) : error 017: undefined symbol "SetPlayerPosObf" C:\Documents and Settings\Admin\Desktop\The Way of Life\gamemodes\WoL.pwn(25286) : error 017: undefined symbol "SetPlayerPosObf" C:\Documents and Settings\Admin\Desktop\The Way of Life\gamemodes\WoL.pwn(25295) : error 017: undefined symbol "SetPlayerPosObf" C:\Documents and Settings\Admin\Desktop\The Way of Life\gamemodes\WoL.pwn(25304) : error 017: undefined symbol "SetPlayerPosObf" C:\Documents and Settings\Admin\Desktop\The Way of Life\gamemodes\WoL.pwn(25322) : error 017: undefined symbol "SetPlayerPosObf" Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 26 Errors.
Код:
C:\Documents and Settings\Admin\Desktop\The Way of Life\gamemodes\WoL.pwn(3648) : error 017: undefined symbol "SetPlayerPosObf" C:\Documents and Settings\Admin\Desktop\The Way of Life\gamemodes\WoL.pwn(3797) : error 017: undefined symbol "SetPlayerPosObf" C:\Documents and Settings\Admin\Desktop\The Way of Life\gamemodes\WoL.pwn(3821) : error 017: undefined symbol "SetPlayerPosObf" C:\Documents and Settings\Admin\Desktop\The Way of Life\gamemodes\WoL.pwn(3844) : error 017: undefined symbol "SetPlayerPosObf" C:\Documents and Settings\Admin\Desktop\The Way of Life\gamemodes\WoL.pwn(3868) : error 017: undefined symbol "SetPlayerPosObf" C:\Documents and Settings\Admin\Desktop\The Way of Life\gamemodes\WoL.pwn(3981) : error 017: undefined symbol "SLocations" C:\Documents and Settings\Admin\Desktop\The Way of Life\gamemodes\WoL.pwn(3981) : warning 215: expression has no effect C:\Documents and Settings\Admin\Desktop\The Way of Life\gamemodes\WoL.pwn(3981) : error 001: expected token: ";", but found "]" C:\Documents and Settings\Admin\Desktop\The Way of Life\gamemodes\WoL.pwn(3981) : error 029: invalid expression, assumed zero C:\Documents and Settings\Admin\Desktop\The Way of Life\gamemodes\WoL.pwn(3981) : fatal error 107: too many error messages on one line Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 9 Errors.
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];
}
}
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;
}
I'm confused because SetPlayerPosObf is defined in my script at the top and I've never had this before, I've checked for missing brackets etc.. but to no avail.
pawn Код:
#define SetPlayerPos SetPlayerPosObf
REP to anyone that can help me solve this.