Talking Animation OnPlayerText based with length of the message.
#5

i try to use this

pawn Код:
new wordCount;
    for(new i = 0; i < strlen(text); i ++ )
    {
        if(text[i] == ' ')
            wordCount++;
    }
    wordCount += 1;
    new seconds = floatround(0.24, floatround_round);
    ApplyAnimation(playerid, "PED", "IDLE_CHAT", 1.0, 1, 1, 1, 0, (seconds * wordCount), 1);
no errors but it play the animation for ever.
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)