Chat animation
#1

pawn Код:
public OnPlayerText(playerid, text[])
{
    if(Wired[playerid] == 1)
    {
        SendClientMessage(playerid, 0xFF3333AA, "You are wired and may not speak!");
        return 0;
    }
    if(strlen(text) >= 5)
    {
        ApplyAnimation(playerid,"MISC","Idle_Chat_02",4.1,1,1,1,1,6000,1);
    }
    if(strlen(text) >= 10 && strlen(text) <= 5)
    {
        ApplyAnimation(playerid,"MISC","Idle_Chat_02",4.1,1,1,1,1,10000,1);
    }
    return 1;
}
Wanted to make it clear, but it sometimes works, some no..
Some help please
Reply
#2

You want them to do a speaking animation when thay are muted?
Reply
#3

No! Ignore the "wired"..
I want them to use animation chat when they speak..
Reply
#4

pawn Код:
if(strlen(text) >= 10 && strlen(text) <= 5)
How in the world could that be possible?

I don't know a number that is bigger than 10 and smaller than 5.
Reply
#5

Quote:
Originally Posted by [XST]O_x
Посмотреть сообщение
pawn Код:
if(strlen(text) >= 10 && strlen(text) <= 5)
How in the world could that be possible?

I don't know a number that is bigger than 10 and smaller than 5.
Than tell me atleast and it was uncompleted anyways
Reply
#6

EDIT: lol realised wat callback it was xD
Reply
#7

So, no solution ?!
Reply
#8

What are you trying to check in this line:
pawn Код:
if(strlen(text) >= 10 && strlen(text) <= 5)
?

Maybe you meant:

pawn Код:
if(strlen(text) >= 5 &&strlen(text) <= 10)
?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)