SA-MP Forums Archive
[Ajuda] Problemas com OnPlayerWeaponShot - 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] Problemas com OnPlayerWeaponShot (/showthread.php?tid=518213)



Problemas com OnPlayerWeaponShot - Stronda xD - 08.06.2014

Estou fazendo um comando /infocombate, nele eu registro quantos tiros o usuбrio deu e quantos ele atirou eu uso a funзгo:
pawn Код:
public OnPlayerWeaponShot(playerid, weaponid, hittype, hitid, Float:fX, Float:fY, Float:fZ)
{  
    InfoCombate[playerid]++;
}
Mas ele nгo conta o nъmero de tiros, teve alguma alteraзгo nela? nгo achei no fуrum nem no wiki :/


Re: Problemas com OnPlayerWeaponShot - Red Smoke - 09.06.2014

Verifica se vocк nгo desativou o lag-comp: https://sampwiki.blast.hk/wiki/Lag_Compensation


Re: Problemas com OnPlayerWeaponShot - Stronda xD - 09.06.2014

Quote:
Originally Posted by Red Smoke
Посмотреть сообщение
Verifica se vocк nгo desativou o lag-comp: https://sampwiki.blast.hk/wiki/Lag_Compensation
Nem tem esse campo no meu server.cfg :/


Re: Problemas com OnPlayerWeaponShot - Krisky_ - 09.06.2014

Quote:
Originally Posted by Stronda xD
Посмотреть сообщение
Nem tem esse campo no meu server.cfg :/
lagcompmode 0 ; lag compensation is disabled
lagcompmode 1 ; (default) lag compensation is enabled
lagcompmode 2 ; lag compensation enabled, position only.
'-'


Re: Problemas com OnPlayerWeaponShot - Stronda xD - 09.06.2014

Quote:
Originally Posted by iLase
Посмотреть сообщение
lagcompmode 0 ; lag compensation is disabled
lagcompmode 1 ; (default) lag compensation is enabled
lagcompmode 2 ; lag compensation enabled, position only.
'-'
Bom, eu tentei em todos os modos de 0 a 2, porem continua o mesmo, diz que eu nгo disparei nenhum tiro