Hallo,
wenn der Spieler auf den Button 'sodButton1' klickt, und in Label 1 der Text '1' ist, soll die Chatbox 'Test' ausgeben, das passiert allerdings nicht, obwohl der Text im Label '1' ist.
Lua
function checkSod (state)
if state == "left" then
if source == sodButton1 then
if guiGetText(sod1) == "1" then
local player = getLocalPlayer()
outputChatBox("Test", player)
end
end
end
end
addEventHandler("onClientGUIClick", getRootElement(), checkSod)
Alles anzeigen
VG