[Help] Animation Index dont work
#1

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(playerid0xFF9900AA"Test"); return true;
        }
return 
1;

Reply
#2

Write it like this and check the logs out

PHP код:
public OnPlayerUpdate(playerid

    if(
GetPlayerAnimationIndex(playerid) != 0printf("%d",GetPlayerAnimationIndex(playerid));
    if(
GetPlayerAnimationIndex(playerid) == 551// 551 = this animation FOOD","FF_Sit_Eat3"?? 
    

        
SendClientMessage(playerid0xFF9900AA"Test");
    } 
    return 
1

Reply
#3

Quote:
Originally Posted by Kaliber
Посмотреть сообщение
Write it like this and check the logs out

PHP код:
public OnPlayerUpdate(playerid

    if(
GetPlayerAnimationIndex(playerid) != 0printf("%d",GetPlayerAnimationIndex(playerid));
    if(
GetPlayerAnimationIndex(playerid) == 551// 551 = this animation FOOD","FF_Sit_Eat3"?? 
    

        
SendClientMessage(playerid0xFF9900AA"Test");
    } 
    return 
1

Very thx friend, u r great +rep...
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)