2 errors
#3

pawn Код:
SetPlayerTeamFromClass(playerid, classid)
{
    switch(classid)
    {
        case 0: gTeam[playerid] = Class1;
        case 1: gTeam[playerid] = Class2;
    }
}
Do not put this inside any callback ( { } 's)
pawn Код:
public OnPlayerRequestClass(playerid, classid)
{
    switch(classid)
    {
    case 0: // Change everything to your needs
    {
        SetPlayerTeamFromClass(playerid, classid);
        SetPlayerInterior(playerid,17);
        SetPlayerPos(playerid,486.0409, -9.4562, 1000.6719);
        SetPlayerFacingAngle(playerid, 137.9666);
        SetPlayerCameraPos(playerid, 483.809051, -13.435981, 1000.679687);
        SetPlayerCameraLookAt(playerid, 486.0409, -9.4562, 1000.6719);
        GameTextForPlayer(playerid, "Class 1", 1000, 3);
    }
    case 1:
    {
        SetPlayerTeamFromClass(playerid, classid);
        SetPlayerInterior(playerid,17);
        SetPlayerPos(playerid,486.0409, -9.4562, 1000.6719);
        SetPlayerFacingAngle(playerid, 137.9666);
        SetPlayerCameraPos(playerid, 483.809051, -13.435981, 1000.679687);
        SetPlayerCameraLookAt(playerid, 486.0409, -9.4562, 1000.6719);
        GameTextForPlayer(playerid, "Class 2", 1000, 3);
    }
    }
    return 1;
}
Reply


Messages In This Thread
2 errors - by flashsnake - 18.06.2011, 22:43
Re: 2 errors - by flashsnake - 19.06.2011, 10:24
Re: 2 errors - by Wesley221 - 19.06.2011, 12:30

Forum Jump:


Users browsing this thread: 1 Guest(s)