Chat Anim
#1

The player freezes when the anim goes on i have searched on the whole forum tryed everything but it keeps freezing
Here is my code
PHP код:
                if(PlayerInfo[playerid][pHelper] > && PlayerInfo[playerid][pAcceptedHelp])
                {
                    
callcmd::b(playeridtext);
                }
                else
                {
                    if(!
strcmp(PlayerInfo[playerid][pAccent], "None"true))
                    {
                        
format(stringsizeof(string), "%s says: %s"GetPlayerRPName(playerid), text);
                    }
                    else
                    {
                        
format(stringsizeof(string), "(%s) %s says: %s"PlayerInfo[playerid][pAccent], GetPlayerRPName(playerid), text);
                    }
                    
SendProximityFadeMessage(playerid20.0stringCOLOR_GREY1COLOR_GREY2COLOR_GREY3COLOR_GREY4COLOR_GREY5);
                     
SetPlayerBubbleText(playerid20.0COLOR_WHITE"says: %s"text);
                     
ApplyAnimation(playerid"PED""IDLE_CHAT"4.0000001);
                    
SetTimerEx("StopChat"1000false"i"playerid); 
And this is the anim placed on Public onplayertext
PHP код:
                     ApplyAnimation(playerid"PED""IDLE_CHAT"4.0000001);
                    
SetTimerEx("StopChat"1000false"i"playerid); 
PHP код:
forward StopChat(playerid);
public 
StopChat(playerid)
{
    return 
ClearAnimations(playerid);

Reply
#2

Bump! Any solution
Reply
#3

Quote:
Originally Posted by ScottMcBean
Посмотреть сообщение
Bump! Any solution
Holas!??
Reply
#4

Your problem come from : ApplyAnimation ; Everything you need to know for your problem is here : https://sampwiki.blast.hk/wiki/ApplyAnimation
Reply
#5

Quote:
Originally Posted by Dayrion
Посмотреть сообщение
Your problem come from : ApplyAnimation ; Everything you need to know for your problem is here : https://sampwiki.blast.hk/wiki/ApplyAnimation
PHP код:
ApplyAnimation(playerid"PED""IDLE_CHAT"4.1100011); 
Like that will work?
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)