30.11.2013, 19:02
Using more than 1 string is messed up. I'd use it as:
But you should separate the two strings with a comma: /anim PED,WALK_DRUNK
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;
}