ApplyAnimation(playerid, animlib[], animname[], Float:fDelta, loop, lockx, locky, freeze, time)
ApplyAnimation(playerid, animlib[], animname[], Float:fDelta, loop, lockx, locky, freeze, time, forcesync)
if(animationplayed == 1) { ApplyAnimation(playerid,"BASEBALL","Bat_1",4.1,0,1,1,1,1,1); } else if(animationplayed == 2) { ApplyAnimation(playerid,"BASEBALL","Bat_2",4.1,0,1,1,1,1,1); } else if(animationplayed == 3) { ApplyAnimation(playerid,"BASEBALL","Bat_2",4.1,0,1,1,1,1,1); } else if(animationplayed == 4) { ApplyAnimation(playerid,"BASEBALL","Bat_4",4.1,0,1,1,1,1,1); } else if(animationplayed == 5) { ApplyAnimation(playerid,"BASEBALL","Bat_block",4.1,0,1,1,1,1,1); } else if(animationplayed == 6) { ApplyAnimation(playerid,"BASEBALL","Bat_Hit_1",4.1,0,1,1,1,1,1); } else if(animationplayed == 7) { ApplyAnimation(playerid,"BASEBALL","Bat_Hit_2",4.1,0,1,1,1,1,1); } else if(animationplayed == 8) { ApplyAnimation(playerid,"BASEBALL","Bat_Hit_3",4.1,0,1,1,1,1,1); } else if(animationplayed == 9) { ApplyAnimation(playerid,"BASEBALL","Bat_IDLE",4.1,0,1,1,1,1,1); } else if(animationplayed == 10) { ApplyAnimation(playerid,"BASEBALL","Bat_M",4.1,0,1,1,1,1,1); } else if(animationplayed == 11) { ApplyAnimation(playerid,"BASEBALL","BAT_PART",4.1,0,1,1,1,1,1); }
if(animationplayed == 1) { ApplyAnimation(playerid,"BASEBALL","Bat_1",4.1,0,1,1,1,1,1,1); } else if(animationplayed == 2) { ApplyAnimation(playerid,"BASEBALL","Bat_2",4.1,0,1,1,1,1,1,1); } else if(animationplayed == 3) { ApplyAnimation(playerid,"BASEBALL","Bat_2",4.1,0,1,1,1,1,1,1); } else if(animationplayed == 4) { ApplyAnimation(playerid,"BASEBALL","Bat_4",4.1,0,1,1,1,1,1,1); } else if(animationplayed == 5) { ApplyAnimation(playerid,"BASEBALL","Bat_block",4.1,0,1,1,1,1,1,1); } else if(animationplayed == 6) { ApplyAnimation(playerid,"BASEBALL","Bat_Hit_1",4.1,0,1,1,1,1,1,1); } else if(animationplayed == 7) { ApplyAnimation(playerid,"BASEBALL","Bat_Hit_2",4.1,0,1,1,1,1,1,1); } else if(animationplayed == 8) { ApplyAnimation(playerid,"BASEBALL","Bat_Hit_3",4.1,0,1,1,1,1,1,1); } else if(animationplayed == 9) { ApplyAnimation(playerid,"BASEBALL","Bat_IDLE",4.1,0,1,1,1,1,1,1); } else if(animationplayed == 10) { ApplyAnimation(playerid,"BASEBALL","Bat_M",4.1,0,1,1,1,1,1,1); } else if(animationplayed == 11) { ApplyAnimation(playerid,"BASEBALL","BAT_PART",4.1,0,1,1,1,1,1,1); }
C:\Users\Kevin\Desktop\animlistbywoozie.pwn(125) : warning 202: number of arguments does not match definition C:\Users\Kevin\Desktop\animlistbywoozie.pwn(127) : warning 202: number of arguments does not match definition C:\Users\Kevin\Desktop\animlistbywoozie.pwn(129) : warning 202: number of arguments does not match definition C:\Users\Kevin\Desktop\animlistbywoozie.pwn(131) : warning 202: number of arguments does not match definition C:\Users\Kevin\Desktop\animlistbywoozie.pwn(133) : warning 202: number of arguments does not match definition C:\Users\Kevin\Desktop\animlistbywoozie.pwn(135) : warning 202: number of arguments does not match definition C:\Users\Kevin\Desktop\animlistbywoozie.pwn(137) : warning 202: number of arguments does not match definition C:\Users\Kevin\Desktop\animlistbywoozie.pwn(139) : warning 202: number of arguments does not match definition C:\Users\Kevin\Desktop\animlistbywoozie.pwn(141) : warning 202: number of arguments does not match definition C:\Users\Kevin\Desktop\animlistbywoozie.pwn(143) : warning 202: number of arguments does not match definition C:\Users\Kevin\Desktop\animlistbywoozie.pwn(145) : warning 202: number of arguments does not match definition
I belive you dont need to add the last part, I never did that on my server and it's working good as i know for the moment.
-Try to use the script as you did in 0.3a If it works perfect there are nothing for you to fare. |
Versions before 0.3b, ApplyAnimation command looks like this
Код:
ApplyAnimation(playerid, animlib[], animname[], Float:fDelta, loop, lockx, locky, freeze, time) Код:
ApplyAnimation(playerid, animlib[], animname[], Float:fDelta, loop, lockx, locky, freeze, time, forcesync) But animations cannot be synced as they only showed on the client of the player who typed the animation command So, I tried to edit the animation fs to make animations synced The original one(a part of it) Код:
if(animationplayed == 1) { ApplyAnimation(playerid,"BASEBALL","Bat_1",4.1,0,1,1,1,1,1); } else if(animationplayed == 2) { ApplyAnimation(playerid,"BASEBALL","Bat_2",4.1,0,1,1,1,1,1); } else if(animationplayed == 3) { ApplyAnimation(playerid,"BASEBALL","Bat_2",4.1,0,1,1,1,1,1); } else if(animationplayed == 4) { ApplyAnimation(playerid,"BASEBALL","Bat_4",4.1,0,1,1,1,1,1); } else if(animationplayed == 5) { ApplyAnimation(playerid,"BASEBALL","Bat_block",4.1,0,1,1,1,1,1); } else if(animationplayed == 6) { ApplyAnimation(playerid,"BASEBALL","Bat_Hit_1",4.1,0,1,1,1,1,1); } else if(animationplayed == 7) { ApplyAnimation(playerid,"BASEBALL","Bat_Hit_2",4.1,0,1,1,1,1,1); } else if(animationplayed == 8) { ApplyAnimation(playerid,"BASEBALL","Bat_Hit_3",4.1,0,1,1,1,1,1); } else if(animationplayed == 9) { ApplyAnimation(playerid,"BASEBALL","Bat_IDLE",4.1,0,1,1,1,1,1); } else if(animationplayed == 10) { ApplyAnimation(playerid,"BASEBALL","Bat_M",4.1,0,1,1,1,1,1); } else if(animationplayed == 11) { ApplyAnimation(playerid,"BASEBALL","BAT_PART",4.1,0,1,1,1,1,1); } Код:
if(animationplayed == 1) { ApplyAnimation(playerid,"BASEBALL","Bat_1",4.1,0,1,1,1,1,1,1); } else if(animationplayed == 2) { ApplyAnimation(playerid,"BASEBALL","Bat_2",4.1,0,1,1,1,1,1,1); } else if(animationplayed == 3) { ApplyAnimation(playerid,"BASEBALL","Bat_2",4.1,0,1,1,1,1,1,1); } else if(animationplayed == 4) { ApplyAnimation(playerid,"BASEBALL","Bat_4",4.1,0,1,1,1,1,1,1); } else if(animationplayed == 5) { ApplyAnimation(playerid,"BASEBALL","Bat_block",4.1,0,1,1,1,1,1,1); } else if(animationplayed == 6) { ApplyAnimation(playerid,"BASEBALL","Bat_Hit_1",4.1,0,1,1,1,1,1,1); } else if(animationplayed == 7) { ApplyAnimation(playerid,"BASEBALL","Bat_Hit_2",4.1,0,1,1,1,1,1,1); } else if(animationplayed == 8) { ApplyAnimation(playerid,"BASEBALL","Bat_Hit_3",4.1,0,1,1,1,1,1,1); } else if(animationplayed == 9) { ApplyAnimation(playerid,"BASEBALL","Bat_IDLE",4.1,0,1,1,1,1,1,1); } else if(animationplayed == 10) { ApplyAnimation(playerid,"BASEBALL","Bat_M",4.1,0,1,1,1,1,1,1); } else if(animationplayed == 11) { ApplyAnimation(playerid,"BASEBALL","BAT_PART",4.1,0,1,1,1,1,1,1); } Warnings(a part on it) Код:
C:\Users\Kevin\Desktop\animlistbywoozie.pwn(125) : warning 202: number of arguments does not match definition C:\Users\Kevin\Desktop\animlistbywoozie.pwn(127) : warning 202: number of arguments does not match definition C:\Users\Kevin\Desktop\animlistbywoozie.pwn(129) : warning 202: number of arguments does not match definition C:\Users\Kevin\Desktop\animlistbywoozie.pwn(131) : warning 202: number of arguments does not match definition C:\Users\Kevin\Desktop\animlistbywoozie.pwn(133) : warning 202: number of arguments does not match definition C:\Users\Kevin\Desktop\animlistbywoozie.pwn(135) : warning 202: number of arguments does not match definition C:\Users\Kevin\Desktop\animlistbywoozie.pwn(137) : warning 202: number of arguments does not match definition C:\Users\Kevin\Desktop\animlistbywoozie.pwn(139) : warning 202: number of arguments does not match definition C:\Users\Kevin\Desktop\animlistbywoozie.pwn(141) : warning 202: number of arguments does not match definition C:\Users\Kevin\Desktop\animlistbywoozie.pwn(143) : warning 202: number of arguments does not match definition C:\Users\Kevin\Desktop\animlistbywoozie.pwn(145) : warning 202: number of arguments does not match definition |
native ApplyAnimation(playerid, animlib[], animname[], Float:fDelta, loop, lockx, locky, freeze, time, forcesync = 0);
native ApplyAnimation(playerid, animlib[], animname[], Float:fDelta, loop, lockx, locky, freeze, time, forcesync = 1);