[Ajuda] GTA Crashando
#1

Quando chego na ultima skin do meu gm e clico para avancar, em vez de voltar a primeira skin, o GTA crasha, alguem saberia me ajudar? se precisar, eis o codigo abaixo.

pawn Код:
public OnPlayerRequestClass(playerid, classid)
{
    if(classid == 0)
    {
        GameTextForPlayer(playerid, "~w~~n~~n~~n~~n~~n~~n~Civil", 1000, 3);
        PlayerInfo[playerid][pMafia] = 0;
    }
    else if(classid == 1)
    {
        GameTextForPlayer(playerid, "~b~~n~~n~~n~~n~~n~~n~Familia Stracci", 1000, 3);
        PlayerInfo[playerid][pMafia] = 1;
    }
    else if(classid == 2)
    {
        GameTextForPlayer(playerid, "~b~~n~~n~~n~~n~~n~~n~Familia Stracci", 1000, 3);
        PlayerInfo[playerid][pMafia] = 1;
    }
    else if(classid == 3)
    {
        GameTextForPlayer(playerid, "~b~~n~~n~~n~~n~~n~~n~Familia Stracci", 1000, 3);
        PlayerInfo[playerid][pMafia] = 1;
    }
    else if(classid == 4)
    {
        GameTextForPlayer(playerid, "~g~~n~~n~~n~~n~~n~~n~Familia Barzini", 1000, 3);
        PlayerInfo[playerid][pMafia] = 2;
    }
    else if(classid == 5)
    {
        GameTextForPlayer(playerid, "~g~~n~~n~~n~~n~~n~~n~Familia Barzini", 1000, 3);
        PlayerInfo[playerid][pMafia] = 2;
    }
    else if(classid == 6)
    {
        GameTextForPlayer(playerid, "~g~~n~~n~~n~~n~~n~~n~Familia Barzini", 1000, 3);
        PlayerInfo[playerid][pMafia] = 2;
    }
    else if(classid == 7)
    {
        GameTextForPlayer(playerid, "~y~~n~~n~~n~~n~~n~~n~Familia Tattaglias", 1000, 3);
        PlayerInfo[playerid][pMafia] = 3;
    }
    else if(classid == 8)
    {
        GameTextForPlayer(playerid, "~y~~n~~n~~n~~n~~n~~n~Familia Tattaglias", 1000, 3);
        PlayerInfo[playerid][pMafia] = 3;
    }
    else if(classid == 9)
    {
        GameTextForPlayer(playerid, "~y~~n~~n~~n~~n~~n~~n~Familia Tattaglias", 1000, 3);
        PlayerInfo[playerid][pMafia] = 3;
    }
    else if(classid == 10)
    {
        GameTextForPlayer(playerid, "~r~~n~~n~~n~~n~~n~~n~Familia Cuneo", 1000, 3);
        PlayerInfo[playerid][pMafia] = 4;
    }
    else if(classid == 11)
    {
        GameTextForPlayer(playerid, "~r~~n~~n~~n~~n~~n~~n~Familia Cuneo", 1000, 3);
        PlayerInfo[playerid][pMafia] = 4;
    }
    else if(classid == 12)
    {
        GameTextForPlayer(playerid, "~r~~n~~n~~n~~n~~n~~n~Familia Cuneo", 1000, 3);
        PlayerInfo[playerid][pMafia] = 4;
    }
    else if(classid == 13)
    {
        GameTextForPlayer(playerid, "~p~~n~~n~~n~~n~~n~~n~Familia Corleone", 1000, 3);
        PlayerInfo[playerid][pMafia] = 5;
    }
    else if(classid == 14)
    {
        GameTextForPlayer(playerid, "~p~~n~~n~~n~~n~~n~~n~Familia Corleone", 1000, 3);
        PlayerInfo[playerid][pMafia] = 5;
    }
    else if(classid == 15)
    {
        GameTextForPlayer(playerid, "~p~~~n~~n~~n~~n~~n~~n~Familia Corleone", 1000, 3);
        PlayerInfo[playerid][pMafia] = 5;
    }
    SetPlayerPos(playerid,1025.5751,-2140.7637,39.2032);
    SetPlayerCameraPos(playerid,1019.7552,-2141.0266,37.7274);
    SetPlayerCameraLookAt(playerid,1021.9974,-2140.9907,38.3012);
    SetPlayerFacingAngle(playerid, 82.6125);
    return 1;
}
Reply
#2

Pra que tanta new line? '--'. Tenta ai \/
pawn Код:
public OnPlayerRequestClass(playerid, classid)
{
    if(classid == 0)
    {
        GameTextForPlayer(playerid, "~n~~n~~w~Civil", 1000, 3);
        PlayerInfo[playerid][pMafia] = 0;
    }
    else if(classid == 1)
    {
        GameTextForPlayer(playerid, "~n~~n~~b~Familia Stracci", 1000, 3);
        PlayerInfo[playerid][pMafia] = 1;
    }
    else if(classid == 2)
    {
        GameTextForPlayer(playerid, "~n~~n~~b~Familia Stracci", 1000, 3);
        PlayerInfo[playerid][pMafia] = 1;
    }
    else if(classid == 3)
    {
        GameTextForPlayer(playerid, "~n~~n~~b~Familia Stracci", 1000, 3);
        PlayerInfo[playerid][pMafia] = 1;
    }
    else if(classid == 4)
    {
        GameTextForPlayer(playerid, "~n~~n~~g~Familia Barzini", 1000, 3);
        PlayerInfo[playerid][pMafia] = 2;
    }
    else if(classid == 5)
    {
        GameTextForPlayer(playerid, "~n~~n~~g~Familia Barzini", 1000, 3);
        PlayerInfo[playerid][pMafia] = 2;
    }
    else if(classid == 6)
    {
        GameTextForPlayer(playerid, "~n~~n~~g~Familia Barzini", 1000, 3);
        PlayerInfo[playerid][pMafia] = 2;
    }
    else if(classid == 7)
    {
        GameTextForPlayer(playerid, "~n~~n~~y~Familia Tattaglias", 1000, 3);
        PlayerInfo[playerid][pMafia] = 3;
    }
    else if(classid == 8)
    {
        GameTextForPlayer(playerid, "~n~~n~~y~Familia Tattaglias", 1000, 3);
        PlayerInfo[playerid][pMafia] = 3;
    }
    else if(classid == 9)
    {
        GameTextForPlayer(playerid, "~n~~n~~y~Familia Tattaglias", 1000, 3);
        PlayerInfo[playerid][pMafia] = 3;
    }
    else if(classid == 10)
    {
        GameTextForPlayer(playerid, "~n~~n~~r~Familia Cuneo", 1000, 3);
        PlayerInfo[playerid][pMafia] = 4;
    }
    else if(classid == 11)
    {
        GameTextForPlayer(playerid, "~n~~n~~r~Familia Cuneo", 1000, 3);
        PlayerInfo[playerid][pMafia] = 4;
    }
    else if(classid == 12)
    {
        GameTextForPlayer(playerid, "~n~~n~~r~Familia Cuneo", 1000, 3);
        PlayerInfo[playerid][pMafia] = 4;
    }
    else if(classid == 13)
    {
        GameTextForPlayer(playerid, "~n~~n~~p~Familia Corleone", 1000, 3);
        PlayerInfo[playerid][pMafia] = 5;
    }
    else if(classid == 14)
    {
        GameTextForPlayer(playerid, "~n~~n~~p~Familia Corleone", 1000, 3);
        PlayerInfo[playerid][pMafia] = 5;
    }
    else if(classid == 15)
    {
        GameTextForPlayer(playerid, "~n~~n~~p~Familia Corleone", 1000, 3);
        PlayerInfo[playerid][pMafia] = 5;
    }
    SetPlayerPos(playerid,1025.5751,-2140.7637,39.2032);
    SetPlayerCameraPos(playerid,1019.7552,-2141.0266,37.7274);
    SetPlayerCameraLookAt(playerid,1021.9974,-2140.9907,38.3012);
    SetPlayerFacingAngle(playerid, 82.6125);
    return 1;
}
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)