Animations script help - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Animations script help (
/showthread.php?tid=599612)
Animations script help -
MarleyBanks - 28.01.2016
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
Re: Animations script help -
Mencent - 28.01.2016
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.