08.05.2012, 15:05
That solved the 26 errors, thank-you, when I change the SLocations to SCLocations I'm getting the 26 errors back again. I'm really at wits end on this.
The function that surrounds 3648;
And the function after lines 11727
Its probably going to be the simplest thing, but I've been at it over night now, and not having at luck.
Код:
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(11727) : error 017: undefined symbol "SetPlayerPosObf" C:\Documents and Settings\Admin\Desktop\The Way of Life\gamemodes\WoL.pwn(11875) : error 017: undefined symbol "SetPlayerPosObf" C:\Documents and Settings\Admin\Desktop\The Way of Life\gamemodes\WoL.pwn(11887) : error 017: undefined symbol "SetPlayerPosObf" C:\Documents and Settings\Admin\Desktop\The Way of Life\gamemodes\WoL.pwn(12148) : error 017: undefined symbol "SetPlayerPosObf" C:\Documents and Settings\Admin\Desktop\The Way of Life\gamemodes\WoL.pwn(12163) : error 017: undefined symbol "SetPlayerPosObf" C:\Documents and Settings\Admin\Desktop\The Way of Life\gamemodes\WoL.pwn(14700) : error 017: undefined symbol "SetPlayerPosObf" C:\Documents and Settings\Admin\Desktop\The Way of Life\gamemodes\WoL.pwn(14766) : error 017: undefined symbol "SetPlayerPosObf" C:\Documents and Settings\Admin\Desktop\The Way of Life\gamemodes\WoL.pwn(14857) : error 017: undefined symbol "SetPlayerPosObf" C:\Documents and Settings\Admin\Desktop\The Way of Life\gamemodes\WoL.pwn(16871) : error 017: undefined symbol "SetPlayerPosObf" C:\Documents and Settings\Admin\Desktop\The Way of Life\gamemodes\WoL.pwn(16883) : error 017: undefined symbol "SetPlayerPosObf" C:\Documents and Settings\Admin\Desktop\The Way of Life\gamemodes\WoL.pwn(16896) : error 017: undefined symbol "SetPlayerPosObf" C:\Documents and Settings\Admin\Desktop\The Way of Life\gamemodes\WoL.pwn(16951) : error 017: undefined symbol "SetPlayerPosObf" C:\Documents and Settings\Admin\Desktop\The Way of Life\gamemodes\WoL.pwn(18617) : error 017: undefined symbol "SetPlayerPosObf" C:\Documents and Settings\Admin\Desktop\The Way of Life\gamemodes\WoL.pwn(18675) : error 017: undefined symbol "SetPlayerPosObf" C:\Documents and Settings\Admin\Desktop\The Way of Life\gamemodes\WoL.pwn(25276) : error 017: undefined symbol "SetPlayerPosObf" C:\Documents and Settings\Admin\Desktop\The Way of Life\gamemodes\WoL.pwn(25285) : error 017: undefined symbol "SetPlayerPosObf" C:\Documents and Settings\Admin\Desktop\The Way of Life\gamemodes\WoL.pwn(25294) : error 017: undefined symbol "SetPlayerPosObf" C:\Documents and Settings\Admin\Desktop\The Way of Life\gamemodes\WoL.pwn(25303) : error 017: undefined symbol "SetPlayerPosObf" C:\Documents and Settings\Admin\Desktop\The Way of Life\gamemodes\WoL.pwn(25321) : error 017: undefined symbol "SetPlayerPosObf" C:\Documents and Settings\Admin\Desktop\The Way of Life\gamemodes\WoL.pwn(25333) : error 017: undefined symbol "SetPlayerPosObf" C:\Documents and Settings\Admin\Desktop\The Way of Life\gamemodes\WoL.pwn(25345) : error 017: undefined symbol "SetPlayerPosObf" Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 26 Errors.
pawn Код:
public RespawnPlayer(playerid)
{
if(ChosenClass[playerid] == 1) //Pilot
{
switch(PInfo[playerid][sSpawn])
{
case 0: //Default
{
if(gTeam[playerid] == TEAM_CPILOT)
{
DisplayDialogForPlayer(playerid, 3);
}
else if(gTeam[playerid] == TEAM_MILITARY)
{
DisplayDialogForPlayer(playerid, 5);
}
UpdateSkin(playerid);
FreezePlayerForTime(playerid, 3);
SetCameraBehindPlayer(playerid);
return 1;
}
case 1: //House 1
{
if(PInfo[playerid][House1] > 0)
{
new HID = PInfo[playerid][House1];
PurelySpawned[playerid] = 1;
PlayerSpawned[playerid] = 1;
SetPlayerHealth(playerid, 100);
SetPlayerInterior(playerid, HInfo[HID][hInterior]);
SetPlayerVirtualWorld(playerid, HID);
SetPlayerPos(playerid, HInfo[HID][hiX],HInfo[HID][hiY],HInfo[HID][hiZ]);
UpdateSkin(playerid);
UpdatePlayerColour(playerid);
InHouse[playerid] = HID;
SetCameraBehindPlayer(playerid);
return 1;
}
else
{
SendClientMessage(playerid, COLOR_ERROR, "You do not own a house in this slot! Please update your settings [/settings].");
DisplayDialogForPlayer(playerid, 3);
return 1;
}
}
case 2: //House 2
{
if(PInfo[playerid][House2] > 0)
{
new HID = PInfo[playerid][House2];
PurelySpawned[playerid] = 1;
PlayerSpawned[playerid] = 1;
SetPlayerHealth(playerid, 100);
SetPlayerInterior(playerid, HInfo[HID][hInterior]);
SetPlayerVirtualWorld(playerid, HID);
SetPlayerPos(playerid, HInfo[HID][hiX],HInfo[HID][hiY],HInfo[HID][hiZ]);
UpdatePlayerColour(playerid);
InHouse[playerid] = HID;
UpdateSkin(playerid);
SetCameraBehindPlayer(playerid);
return 1;
}
else
{
SendClientMessage(playerid, COLOR_ERROR, "You do not own a house in this slot! Please update your settings [/settings].");
DisplayDialogForPlayer(playerid, 3);
return 1;
}
}
case 3: // Airline
{
if(PInfo[playerid][Airline] > 0)
{
PurelySpawned[playerid] = 1;
PlayerSpawned[playerid] = 1;
SetPlayerHealth(playerid, 100);
SetPlayerInterior(playerid, 0);
SetPlayerVirtualWorld(playerid, 0);
SetPlayerPos(playerid, AInfo[PInfo[playerid][Airline]][aPos1], AInfo[PInfo[playerid][Airline]][aPos2], AInfo[PInfo[playerid][Airline]][aPos3]);
SetPlayerFacingAngle(playerid, AInfo[PInfo[playerid][Airline]][aPos4]);
UpdatePlayerColour(playerid);
UpdateSkin(playerid);
FreezePlayerForTime(playerid, 3);
SetCameraBehindPlayer(playerid);
return 1;
}
else
{
SendClientMessage(playerid, COLOR_ERROR, "You are not in an airline! Please update your settings [/settings].");
DisplayDialogForPlayer(playerid, 3);
return 1;
}
}
}
}
if(ChosenClass[playerid] == 2) //Sailor
{
if(gTeam[playerid] == TEAM_SAILOR)
{
PurelySpawned[playerid] = 1;
PlayerSpawned[playerid] = 1;
SetPlayerPos(playerid, 64.2697,-1790.0209,3.1146);
SetPlayerInterior(playerid, 0);
SetPlayerVirtualWorld(playerid, 0);
PlayerSpawned[playerid] = 1;
SetCameraBehindPlayer(playerid);
SelectedSpawn[playerid] = 1;
UpdatePlayerColour(playerid);
UpdateSkin(playerid);
FreezePlayerForTime(playerid, 3);
}
}
return 1;
}
pawn Код:
public OnPlayerRequestClass(playerid, classid)
{
TogglePlayerControllable(playerid, false);
SetPlayerPos(playerid,1933.6263,-2399.9102,1201.7321);
SetPlayerCameraPos(playerid, 1931.7674, -2417.5302, 1205.6908);
SetPlayerCameraLookAt(playerid, 1931.7674, -2417.5202, 1200.6908);
if(PlayerLogged[playerid] == 0)
{
mysql_reconnect();
new Query[90], EscName[MAX_PLAYER_NAME];
mysql_real_escape_string(PlayerName(playerid), EscName);
format(Query, sizeof(Query), "SELECT * FROM `users` WHERE `username` = '%s'", EscName);
mysql_query(Query);
mysql_store_result();
if(mysql_num_rows() != 0)
{
mysql_free_result();
SendClientMessage(playerid, COLOR_SECURITY, "Please enter your password below to continue.");
DisplayDialogForPlayer(playerid, 1);
return 0;
}
else
{
mysql_free_result();
SendClientMessage(playerid, COLOR_SECURITY, "Please enter a password below to register an account.");
DisplayDialogForPlayer(playerid, 2);
return 0;
}
}
return 1;
}