Need help with error:undefined symbol "SetupPlayerForClassSelection"
#8

Yes , It compiled without error Thank you so much Shinja.
But where should I re-add. these two functions ?
pawn Код:
SetupPlayerForClassSelection(playerid);




forward SetupPlayerForClassSelection(playerid);
public SetupPlayerForClassSelection(playerid)
{
    // Set the player's orientation when they're selecting a class.
    SetPlayerPos(playerid,1984.4445,157.9501,55.9384);
    SetPlayerCameraPos(playerid,1984.4445,160.9501,55.9384);
    SetPlayerCameraLookAt(playerid,1984.4445,157.9501,55.9384);
    SetPlayerFacingAngle(playerid,0.0);
}
In the script which I just edited
pawn Код:
public OnPlayerRequestClass(playerid, classid)
{
    SetPlayerPos(playerid, 1958.3783, 1343.1572, 15.3746);
    SetPlayerCameraPos(playerid, 1958.3783, 1343.1572, 15.3746);
    SetPlayerCameraLookAt(playerid, 1958.3783, 1343.1572, 15.3746);
        SetPlayerFacingAngle(playerid,0.0);
    switch(classid)
    {
        case 0 .. 14:
        {
            gTeam[playerid] = 0;
        }
        case 15 .. 20:
        {
            gTeam[playerid] = 1;
        }
        case 21 .. 27:
        {
            gTeam[playerid] = 2;
        }
        case 28 .. 31:
        {
            gTeam[playerid] = 3;
        }
        case 32 .. 35:
        {
            gTeam[playerid] = 4;
        }
        case 36 .. 41:
        {
            gTeam[playerid] = 5;
        }
        case 42 .. 50:
        {
            gTeam[playerid] = 6;
        }
        case 51 .. 56:
        {
            gTeam[playerid] = 7;
        }
    }
    return 1;
}
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 2 Guest(s)