Hallo Community,
da ich seit heute nacht versuche mit MySQL zu scripten
habe ich mir tutorials von soner angeschaut jedoch öffnet
sich mein Login / Register GUI nicht -.-
Ich habe eig. alles richtig gemacht, ich habe es als Client seitig in die Meta eingefuegt, ich habe
versucht es mit einem CommandHandler zu öffnen und mir ist aufgefallen das die function nicht
mal ausgeführt wird da der Cursor auch nicht angezeigt wird.
Lua
login = {
tab = {},
staticimage = {},
tabpanel = {},
label = {},
button = {},
window = {},
edit = {}
}
function registerstart ()
showCursor(true)
local screenW, screenH = guiGetScreenSize()
login.window[1] = guiCreateWindow((screenW - 558) / 2, (screenH - 371) / 2, 558, 371, "Login / Register | ADN-----", false)
guiWindowSetSizable(login.window[1], false)
login.tabpanel[1] = guiCreateTabPanel(9, 22, 539, 339, false, login.window[1])
login.tab[1] = guiCreateTab("Login", login.tabpanel[1])
login.staticimage[1] = guiCreateStaticImage(174, -40, 221, 237, ":dragrace/images/logo.png", false, login.tab[1])
login.button[1] = guiCreateButton(148, 252, 270, 32, "Login", false, login.tab[1])
guiSetFont(login.button[1], "default-bold-small")
guiSetProperty(login.button[1], "NormalTextColour", "FF1EB700")
login.label[1] = guiCreateLabel(153, 159, 62, 15, "Username:", false, login.tab[1])
guiSetFont(login.label[1], "default-bold-small")
login.label[2] = guiCreateLabel(158, 206, 62, 15, "Password:", false, login.tab[1])
guiSetFont(login.label[2], "default-bold-small")
login.edit[2] = guiCreateEdit(215, 202, 160, 24, "", false, login.tab[1])
guiEditSetMasked(login.edit[2], true)
login.edit[1] = guiCreateEdit(215, 155, 160, 24, "", false, login.tab[1])
login.tab[2] = guiCreateTab("Register", login.tabpanel[1])
login.staticimage[2] = guiCreateStaticImage(173, -28, 221, 238, "images/logo.png", false, login.tab[2])
login.label[3] = guiCreateLabel(36, 182, 65, 15, "Username:", false, login.tab[2])
guiSetFont(login.label[3], "default-bold-small")
login.label[4] = guiCreateLabel(30, 218, 71, 14, "Racername:", false, login.tab[2])
guiSetFont(login.label[4], "default-bold-small")
login.label[5] = guiCreateLabel(278, 219, 61, 15, " Password:", false, login.tab[2])
guiSetFont(login.label[5], "default-bold-small")
login.edit[5] = guiCreateEdit(343, 218, 163, 21, "", false, login.tab[2])
guiEditSetMasked(login.edit[5], true)
login.edit[4] = guiCreateEdit(101, 218, 163, 21, "", false, login.tab[2])
login.edit[3] = guiCreateEdit(101, 178, 163, 21, "", false, login.tab[2])
login.button[2] = guiCreateButton(167, 265, 213, 40, "Register", false, login.tab[2])
guiSetFont(login.button[2], "default-bold-small")
guiSetProperty(login.button[2], "NormalTextColour", "FF1EB700")
end
)
addCommandHandler("abc123", registerstart)
Alles anzeigen
MFG. Jason