[Ajuda] Funзхes 0.3x - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: Non-English (
https://sampforum.blast.hk/forumdisplay.php?fid=9)
+--- Forum: Languages (
https://sampforum.blast.hk/forumdisplay.php?fid=33)
+---- Forum: Português/Portuguese (
https://sampforum.blast.hk/forumdisplay.php?fid=34)
+---- Thread: [Ajuda] Funзхes 0.3x (
/showthread.php?tid=414298)
Funзхes 0.3x -
Gleisson_. - 08.02.2013
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.
Re: Funзхes 0.3x -
Jumper. - 08.02.2013
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
Re: Funзхes 0.3x -
Maklister - 08.02.2013
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;
}
Re: Funзхes 0.3x -
Gleisson_. - 08.02.2013
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.