#4

Using more than 1 string is messed up. I'd use it as:
pawn Код:
CMD:anim(playerid, params[])
{
    if(isnull(params)) return SendClientMessage(playerid, -1, "/anim [library,anim]");
    new lib[15], anim[30];
    sscanf(params, "p<,>s[15]s[30]", lib, anim);
    ApplyAnimation(playerid, lib, anim, 4.1, 1, 1, 1, 1, 1, 1);
    return 1;
}
But you should separate the two strings with a comma: /anim PED,WALK_DRUNK
Reply


Messages In This Thread
anim - by Mattakil - 30.11.2013, 18:36
Re: anim - by Danialdano - 30.11.2013, 18:41
Re: anim - by Mattakil - 30.11.2013, 18:45
Re: anim - by Konstantinos - 30.11.2013, 19:02
Re: anim - by Mattakil - 30.11.2013, 20:08

Forum Jump:


Users browsing this thread: 1 Guest(s)