Team Errors. Please help!
#6

New issue while working a different script...

Here's the errors I'm getting...
Код:
C:\Users\Mace\Desktop\LS Cops and Robbers\gamemodes\LS_CnR.pwn(224) : error 004: function "SetPlayerTeamFromClass" is not implemented
C:\Users\Mace\Desktop\LS Cops and Robbers\gamemodes\LS_CnR.pwn(488) : error 004: function "SetPlayerToTeamColour" is not implemented
C:\Users\Mace\Desktop\LS Cops and Robbers\gamemodes\LS_CnR.pwn(701) : error 055: start of function body without function header
C:\Users\Mace\Desktop\LS Cops and Robbers\gamemodes\LS_CnR.pwn(702) : error 010: invalid function or declaration
C:\Users\Mace\Desktop\LS Cops and Robbers\gamemodes\LS_CnR.pwn(704) : error 010: invalid function or declaration
C:\Users\Mace\Desktop\LS Cops and Robbers\gamemodes\LS_CnR.pwn(705) : error 010: invalid function or declaration
C:\Users\Mace\Desktop\LS Cops and Robbers\gamemodes\LS_CnR.pwn(710) : error 055: start of function body without function header
C:\Users\Mace\Desktop\LS Cops and Robbers\gamemodes\LS_CnR.pwn(711) : error 010: invalid function or declaration
C:\Users\Mace\Desktop\LS Cops and Robbers\gamemodes\LS_CnR.pwn(713) : error 010: invalid function or declaration
C:\Users\Mace\Desktop\LS Cops and Robbers\gamemodes\LS_CnR.pwn(714) : error 010: invalid function or declaration
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


10 Errors.
[Finished in 0.5s]
The codes that are having the issues...
pawn Код:
public OnPlayerRequestClass(playerid, classid)
{
    SetPlayerPos(playerid, 1553.0560,-1360.1155,329.4693);
    SetPlayerCameraPos(playerid, 1546.7925,-1360.0486,329.4628);
    SetPlayerCameraLookAt(playerid, 1546.7925,-1360.0486,329.4628);
    SetPlayerFacingAngle(playerid, 90);
    SetPlayerTeamFromClass(playerid, classid); // Line 224
    {
        if(classid == 0)
        {
            gTeam[playerid] = TEAM_COPS;
        }
    }
    return 1;
}
pawn Код:
public OnPlayerSpawn(playerid)
{
    TextDrawShowForPlayer(playerid, randommsg);
    SetPlayerToTeamColour(playerid, classid); // Line 488
    {
        if(gTeam[playerid] == TEAM_COPS)
        {
            SetPlayerColor(playerid, COPS_COLOR);
        }
        if(gTeam[playerid] == TEAM_CIVILIAN)
        {
            SetPlayerColor(playerid, CIVIL_COLOR);
        }
    }
    return 1;
}
pawn Код:
stock SetPlayerTeamFromClass(playerid, classid); // line 700
{
    switch(classid)
    {
        case 0..7: gTeam[playerid] = TEAM_COPS;
        case 8..57: gTeam[playerid] = TEAM_CIVILIAN;
    }
}

stock SetPlayerToTeamColour(playerid);
{
    switch(gTeam[playerid])
    {
        case TEAM_COPS: SetPlayerColor(playerid, COPS_COLOR);
        case TEAM_CIVILIAN: SetPlayerColor(playerid, CIVIL_COLOR);
    }
}
Reply


Messages In This Thread
Team Errors. Please help! - by Th3UnKnOwN - 29.12.2014, 20:32
Re: Team Errors. Please help! - by SickAttack - 29.12.2014, 20:42
Re: Team Errors. Please help! - by Th3UnKnOwN - 29.12.2014, 20:51
Re: Team Errors. Please help! - by SickAttack - 29.12.2014, 21:28
Re: Team Errors. Please help! - by ikkentim - 29.12.2014, 22:43
Re: Team Errors. Please help! - by Th3UnKnOwN - 02.01.2015, 03:44
Re: Team Errors. Please help! - by UploaD - 02.01.2015, 05:23

Forum Jump:


Users browsing this thread: 1 Guest(s)