Animations script help
#1

Error:
Код:
C:\Users\Homes\Desktop\Marley\gamemodes\myscript.pwn(44) : error 017: undefined symbol "PlayAnimEx"
C:\Users\Homes\Desktop\Marley\gamemodes\myscript.pwn(45) : error 017: undefined symbol "PlayAnimEx"
C:\Users\Homes\Desktop\Marley\gamemodes\myscript.pwn(46) : error 017: undefined symbol "PlayAnimEx"
C:\Users\Homes\Desktop\Marley\gamemodes\myscript.pwn(47) : error 017: undefined symbol "PlayAnimEx"
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase

4 Errors.
Code:
CMD:camera(playerid, params[])
{
switch(strval(params))
{
44 case 1: { PlayAnimEx(playerid,"CAMERA","piccrch_in",4.1, 0, 1, 1, 1, 1, 1);}
45 case 2: { PlayAnimEx(playerid,"CAMERA","picstnd_in",4.0, 0, 1, 1, 1, 1, 1);}
46 case 3: { PlayAnimEx(playerid,"CAMERA","picstnd_take",4.0, 0, 1, 1, 1, 1, 1);}
47 case 4: { PlayAnimEx(playerid,"CAMERA","picstnd_out",4.0, 0, 1, 1, 1, 1, 1);}
default: SendClientMessage(playerid, COLOR_WHITE, "USAGE: /camera [1-4]");
}
return 1;
}

Any help
Reply
#2

Hi!

Take this function:
https://sampwiki.blast.hk/wiki/ApplyAnimation

PlayAnimEx ist not defined in your script, this is the mistake why it doesn't work.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)