21.11.2011, 13:37
Please help me for with error:
Linies: 2148-2192
pawn Код:
D:\Games\GABY\SAMPP\utile\1.11.2011\OnSpeed MOD\gamemodes\Nus bune\OnSpeed.pwn(2158) : error 004: function "SetPlayerToTeamColor" is not implemented
D:\Games\GABY\SAMPP\utile\1.11.2011\OnSpeed MOD\gamemodes\Nus bune\OnSpeed.pwn(2158) : warning 215: expression has no effect
D:\Games\GABY\SAMPP\utile\1.11.2011\OnSpeed MOD\gamemodes\Nus bune\OnSpeed.pwn(2158) : error 001: expected token: ";", but found ")"
D:\Games\GABY\SAMPP\utile\1.11.2011\OnSpeed MOD\gamemodes\Nus bune\OnSpeed.pwn(2158) : error 029: invalid expression, assumed zero
D:\Games\GABY\SAMPP\utile\1.11.2011\OnSpeed MOD\gamemodes\Nus bune\OnSpeed.pwn(2158) : fatal error 107: too many error messages on one line
Compilation aborted.Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
4 Errors.
pawn Код:
if(Spectate[i] == 253)
{
TogglePlayerControllable(i, 1);
TogglePlayerSpectating(i, 0);
SetPlayerInterior(i,Unspec[i][sPint]);
PlayerInfo[i][pInt] = Unspec[i][sPint];
PlayerInfo[i][pLocal] = Unspec[i][sLocal];
Unspec[i][sLocal] = 255;
SetSpawnInfo(i, PlayerInfo[i][pTeam], PlayerInfo[i][pModel], Unspec[i][sPx], Unspec[i][sPy], Unspec[i][sPz]-1.0, 1.0, -1, -1, -1, -1, -1, -1);
gTeam[i] = PlayerInfo[i][pTeam];
SetPlayerToTeamColor(%i);
MedicBill[i] = 0;
if(PlayerInfo[i][pDonateRank] > 0)
{
SetSpawnInfo(i, PlayerInfo[i][pTeam], PlayerInfo[i][pModel], Unspec[i][Coords][0], Unspec[i][Coords][1], Unspec[i][Coords][2], 10.0, -1, -1, -1, -1, -1, -1);
SpawnPlayer(i);
SetCameraBehindPlayer(i);
}
else
{
SpawnPlayer(i);
}
Spectate[i] = 255;
}
if(Spectate[i] == 254)
{
TogglePlayerControllable(i, 1);
SetPlayerInterior(i,Unspec[i][sPint]);
PlayerInfo[i][pInt] = Unspec[i][sPint];
PlayerInfo[i][pLocal] = Unspec[i][sLocal];
SetPlayerPos(i, Unspec[i][sPx], Unspec[i][sPy], Unspec[i][sPz]);
Spectate[i] = 255;
}
if(Spectate[i] == 256)
{
SetPlayerToTeamColor(%i);
Spectate[i] = 255;
}
if(Spectate[i] == 257)
{
Spectate[i] = 254;
}
}
}
}