SA-MP Forums Archive
animation bug since 3b - 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)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: animation bug since 3b (/showthread.php?tid=186112)



animation bug since 3b - ombre - 27.10.2010

Hi all,


I have in my script:

Код:
format(string, sizeof(string), "%s says: %s", GetPlayerNameEx(playerid), text);
ProxDetector(20.0, playerid, string,COLOR_FADE1,COLOR_FADE2,COLOR_FADE3,COLOR_FADE4,COLOR_FADE5);
new lengthtime = strlen(text);
new aTime = lengthtime*200;
ApplyAnimation(playerid,"PED","IDLE_CHAT",4.0,1,1,1,1,1);
SetTimerEx("StopTalk", aTime, false, "i", playerid);

public StopTalk(playerid)
{
    ApplyAnimation(playerid, "CARRY", "crry_prtial", 4.0, 0, 0, 0, 0, 0);
    return 1;
}
Before the 3b version, the one who talked used to see his animation to stop, and people around him too. Since the 3b, the person who talks can see his animation to stop but people around don't see the animation stop. How to fix it please?

Thx.


Re: animation bug since 3b - boelie - 27.10.2010

did you try the extra value at the end ?


Re: animation bug since 3b - Mauzen - 27.10.2010

https://sampwiki.blast.hk/wiki/ApplyAnimation
Try setting the forcesync arg to 1 in StopTalk
ApplyAnimation(playerid, "CARRY", "crry_prtial", 4.0, 0, 0, 0, 0, 0, 1);


Re : animation bug since 3b - ombre - 27.10.2010

ok I test it thx.