[Help] Animation Index dont work - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: [Help] Animation Index dont work (
/showthread.php?tid=662889)
[Help] Animation Index dont work -
bookknp - 14.01.2019
hello guys, i need help with this, what's wrong with the code, dont work?? +rep
PHP код:
public OnPlayerUpdate(playerid)
{
if(GetPlayerAnimationIndex(playerid) == 551) // 551 = this animation FOOD","FF_Sit_Eat3"??
{
SendClientMessage(playerid, 0xFF9900AA, "Test"); return true;
}
return 1;
}
Re: [Help] Animation Index dont work -
Kaliber - 14.01.2019
Write it like this and check the logs out
PHP код:
public OnPlayerUpdate(playerid)
{
if(GetPlayerAnimationIndex(playerid) != 0) printf("%d",GetPlayerAnimationIndex(playerid));
if(GetPlayerAnimationIndex(playerid) == 551) // 551 = this animation FOOD","FF_Sit_Eat3"??
{
SendClientMessage(playerid, 0xFF9900AA, "Test");
}
return 1;
}
Re: [Help] Animation Index dont work -
bookknp - 14.01.2019
Quote:
Originally Posted by Kaliber
Write it like this and check the logs out
PHP код:
public OnPlayerUpdate(playerid)
{
if(GetPlayerAnimationIndex(playerid) != 0) printf("%d",GetPlayerAnimationIndex(playerid));
if(GetPlayerAnimationIndex(playerid) == 551) // 551 = this animation FOOD","FF_Sit_Eat3"??
{
SendClientMessage(playerid, 0xFF9900AA, "Test");
}
return 1;
}
|
Very thx friend, u r great +rep...