You are not logged in.

  • Login
Bitte besucht unser neues Forum unter https://forum.nitrado.net | Please visit our new Forum at https://forum.nitrado.net

Dear visitor, welcome to Nitrado.net Prepaid Gameserver Community-Support - Archiv. If this is your first visit here, please read the Help. It explains in detail how this page works. To use all features of this page, you should consider registering. Please use the registration form, to register here or read more information about the registration process. If you are already registered, please login here.

Pointandnox

User / Kunde

  • "Pointandnox" started this thread

Posts: 4

  • Send private message

1

Wednesday, May 17th 2017, 8:46am

[MTA] Handy script Probleme mit GUIEditor.staticimage[] = guiCreateStaticImage("", true)

try it since now 10 hours and i search on so mutch sides to find the problem and all times i read it must be client side but it is client side meta is also right but always nil value error
i hope anybody can help me and pls write how i can fix and not only the finish script O.o

Spoiler Spoiler

GUIEditor = {
button = {},
staticimage = {},
label = {},
window = {},
edit = {}
}



function iphonestart()
destroyElement(GUIEditor.staticimage[99374])
GUIEditor.staticimage[99374] = guiCreateStaticImage(0.38, 0.28, 0.18, 0.53, "images/iphone6.png", false )
GUIEditor.staticimage[33431278] = guiCreateStaticImage(0.06, 0.12, 0.87, 0.77, "images/lock.png", true, GUIEditor.staticimage[99376])
GUIEditor.button[99374] = guiCreateButton(0.21, 0.91, 0.58, 0.05, "Unlock", true, GUIEditor.staticimage[33431278])
guiSetAlpha(GUIEditor.button[99374], 0.00)
GUIEditor.label[9989976] = guiCreateLabel(0.17, 0.07, 0.76, 0.21, "00:00", true, GUIEditor.staticimage[33431278])
guiSetFont(GUIEditor.label[9989976], "sa-gothic")
function locktime ()
local time = getRealTime()
local stunden = time.hour
local minuten = time.minute
zeit = stunden..":"..minuten
guiSetText ( GUIEditor.label[9989976], zeit )
end
addEventHandler("onClientRender", getRootElement(), locktime)
setTimer(locktime, 1000, 0)





showCursor ( true )
addEventHandler ( "onClientGUIClick", GUIEditor.button[99374],
function ( button, state )
if (button == "left" and state == "up") then
if (source == GUIEditor.button[99374]) then
showCursor ( true )
lock2= playSound("sounds/lock2.mp3")
guiSetVisible ( GUIEditor.staticimage[99376], false )
Iphone()



end
bindKey ( iphonestart, "2", "up")
end
end
)
end


addCommandHandler("iphone", iphonestart)


errorcode is:
attempt to indexx field staticimage (nil value)
Pointandnox has attached the following file:
  • handy2.PNG (115.37 kB - 1 times downloaded - latest: Aug 6th 2017, 12:12am)

This post has been edited 1 times, last edit by "Pointandnox" (May 17th 2017, 8:52am)


Bitte besucht unser neues Forum unter https://forum.nitrado.net| Please visit our new Forum at https://forum.nitrado.net