[Ajuda] Funзхes 0.3x
#1

Nгo estou conseguindo usar as funзхes do Sa:Mp 0.3x como dito aqui.

Cуdigo:

pawn Код:
format(STR, 256, "~r~STATUS:~n~Score: ~w~%d~n~~r~Spree: ~w~%d~n~~r~Ping: ~w~%d~n~~r~Fps: ~w~%d~n~~r~Morreu: ~w~%d~n~~r~Exp: ~w~%d", GetPlayerScore(x), Spree[x], GetPlayerPing(x), GetPlayerFPS(x), Moorreu[x], Exp[x]);
Erro:

pawn Код:
C:\Users\Cliente\Desktop\BRASIL GUERRA EM LOS SANTOS 0.3x\gamemodes\NewGm.pwn(2020) : error 017: undefined symbol "GetPlayerFPS"


Nota: Ja me certifiquei de que estou abrindo com o Pawno do samp 0.3x.
Reply
#2

Quote:
Originally Posted by Gleisson_.
Посмотреть сообщение
Nгo estou conseguindo usar as funзхes do Sa:Mp 0.3x como dito aqui.

Cуdigo:

pawn Код:
format(STR, 256, "~r~STATUS:~n~Score: ~w~%d~n~~r~Spree: ~w~%d~n~~r~Ping: ~w~%d~n~~r~Fps: ~w~%d~n~~r~Morreu: ~w~%d~n~~r~Exp: ~w~%d", GetPlayerScore(x), Spree[x], GetPlayerPing(x), GetPlayerFPS(x), Moorreu[x], Exp[x]);
Erro:

pawn Код:
C:\Users\Cliente\Desktop\BRASIL GUERRA EM LOS SANTOS 0.3x\gamemodes\NewGm.pwn(2020) : error 017: undefined symbol "GetPlayerFPS"


Nota: Ja me certifiquei de que estou abrindo com o Pawno do samp 0.3x.
essas sгo sugestхes de funзгo hehe
Reply
#3

Adcione no final de seu GameMode

pawn Код:
stock GetPlayerFPS(playerid)
{
    SetPVarInt(playerid, "DrunkL", GetPlayerDrunkLevel(playerid));
    if(GetPVarInt(playerid, "DrunkL") < 100)
    {
        SetPlayerDrunkLevel(playerid, 2000);
    }    
    else
    {
        if(GetPVarInt(playerid, "LDrunkL") != GetPVarInt(playerid, "DrunkL"))
        {
            SetPVarInt(playerid, "FPS", (GetPVarInt(playerid, "LDrunkL") - GetPVarInt(playerid, "DrunkL")));
            SetPVarInt(playerid, "LDrunkL", GetPVarInt(playerid, "DrunkL"));
            if(GetPVarInt(playerid, "FPS") > 0) && (GetPVarInt(playerid, "FPS") < 256)
            {
                return GetPVarInt(playerid, "FPS") - 1;
            }
        }
    }
    return 0;
}
Reply
#4

OMG. E nгo foram mesmo adicionadas essas sugestхes, que lixo.

@EDIT:

Quote:
Originally Posted by Murilo_sousa
Adcione no final de seu GameMode

pawn Код:
stock GetPlayerFPS(playerid)
{
    SetPVarInt(playerid, "DrunkL", GetPlayerDrunkLevel(playerid));
    if(GetPVarInt(playerid, "DrunkL") < 100)
    {
        SetPlayerDrunkLevel(playerid, 2000);
    }    
    else
    {
        if(GetPVarInt(playerid, "LDrunkL") != GetPVarInt(playerid, "DrunkL"))
        {
            SetPVarInt(playerid, "FPS", (GetPVarInt(playerid, "LDrunkL") - GetPVarInt(playerid, "DrunkL")));
            SetPVarInt(playerid, "LDrunkL", GetPVarInt(playerid, "DrunkL"));
            if(GetPVarInt(playerid, "FPS") > 0) && (GetPVarInt(playerid, "FPS") < 256)
            {
                return GetPVarInt(playerid, "FPS") - 1;
            }
        }
    }
    return 0;
}
Valeu, vou ver se posso adicionar +REP.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)