Witam, ostatnio starałem się napisać dosyć prosty skrypt, ale po naprawdę wielu nieudanych próbach postanowiłem poszukać pomocy. Problem polega na tym, że po naciśnięciu przycisku wyskakuje błąd o treści: Bad argument @'setPedWalkingStyle'
function onClientGUIClick (button, state, absoluteX, absoluteYe)
if (source == GUIEditor.button[1]) then guiSetVisible (GUIEditor.window[1], false) showCursor (false)
local id = guiGridListGetItemText (Gangster1, guiGridListGetSelectedItem (Gangster1), 2)
setPedWalkingStyle (getLocalPlayer(), id)
end
end
addEventHandler ("onClientGUIClick", getRootElement(), onClientGUIClick)
Może mi ktoś wytłumaczyć na czym polega ten błąd i jak go naprawić? z góry dziękuję za pomoc.