Jump to content

Баг MTA 1.1.1(Современный буилд)


Recommended Posts

Вот, после того как мой скрипт не работал, я написал именно эти строки, чтобы удостовериться в неработоспособности этой функции.

Вот пример:

  
addCommandHandler("test",  
function(thePlayer, command) 
setPedAnimation ( thePlayer,"carry", "crry_prtial", -1, false, true, true, true ) 
local animblock, anim = getPedAnimation ( thePlayer ) 
outputChatBox(animblock.."   "..anim, thePlayer) 
end) 
  

Дебуг указывает на строку с "local animblock, anim = getPedAnimation ( thePlayer )". (attempt to call global "getPedAnimation" (a nil value))

Link to comment

Эта функция работает только на стороне клиента.

addCommandHandler("test",  
    function (command) 
        setPedAnimation(localPlayer, "carry", "crry_prtial", 100, false, true, true, true) 
        local block, anim = getPedAnimation(localPlayer) 
        outputChatBox(block .. "   " .. anim) 
    end 
) 

Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...