SA-MP Forums

Go Back   SA-MP Forums > SA-MP Scripting and Plugins > Scripting Help

Reply
 
Thread Tools Display Modes
Old 14/01/2019, 05:56 PM   #1
bookknp
Big Clucker
 
bookknp's Avatar
 
Join Date: Dec 2013
Posts: 190
Reputation: 24
Default [Help] Animation Index dont work

hello guys, i need help with this, what's wrong with the code, dont work?? +rep

PHP Code:
public OnPlayerUpdate(playerid)
{
 
        if(
GetPlayerAnimationIndex(playerid) == 551// 551 = this animation FOOD","FF_Sit_Eat3"??
        
{
        
SendClientMessage(playerid0xFF9900AA"Test"); return true;
        }
return 
1;

bookknp is offline   Reply With Quote
Old 14/01/2019, 06:01 PM   #2
Kaliber
Gangsta
 
Kaliber's Avatar
 
Join Date: Jun 2012
Location: Localhost
Posts: 992
Reputation: 135
Default Re: [Help] Animation Index dont work

Write it like this and check the logs out

PHP Code:
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

__________________
Kaliber is online now   Reply With Quote
Old 14/01/2019, 08:26 PM   #3
bookknp
Big Clucker
 
bookknp's Avatar
 
Join Date: Dec 2013
Posts: 190
Reputation: 24
Default Re: [Help] Animation Index dont work

Quote:
Originally Posted by Kaliber View Post
Write it like this and check the logs out

PHP Code:
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...
bookknp is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Animation Index of PED FALL SlonCHL Scripting Help 1 14/01/2014 06:59 AM
Please help finding animation index. [WSF]ThA_Devil Scripting Help 0 01/12/2012 11:28 AM
Animation index. BaubaS Scripting Help 6 24/08/2012 04:55 AM
if u dont login u get kicked dont work thefatshizms Scripting Help 6 17/06/2012 05:38 PM
My Server work on Windows and dont work on linux Justinlol Help Archive 10 14/08/2011 02:43 PM


All times are GMT. The time now is 10:14 PM.


Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.