23.08.2010, 13:23
(
Последний раз редактировалось kevinchui828; 23.08.2010 в 14:35.
Причина: Typing mistake again and again(I hope it won't be loop....)
)
Versions before 0.3b, ApplyAnimation command looks like this
But in 0.3b
I compiled the animation fs for 0.3b
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)
And I changed it into(a part of it)(adding ,1)
But when I compile it, I got warnings on each line I've edited
Warnings(a part on it)
What's the problem@@
Код:
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