#IfWinActive GTA:SA:MP
#SingleInstance force
#NoTrayIcon
#Include %A_ScriptDir%\API\SAMP.ahk
#Include %A_ScriptDir%\API\improv3d.ahk
;Gui, Add, Picture, x-8 y-1 w1210 h630 , C:\Users\Marcel\Desktop\Keybinder\Grove Street\Images\StartBackground.png
;Gui, Show, w1202 h628, Untitled GUI
;return
Gui, Add, Picture, x-8 y-1 w630 h340 , C:\Users\Marcel\Desktop\Keybinder\Grove Street\Images\Background.jpg
Gui, Add, Button, x212 y259 w210 h30 +Center gLogin, Login
Gui, Add, Edit, x212 y79 w210 h30 +Center +Password vuser, Benutzer
Gui, Add, Edit, x212 y159 w210 h30 +Center +Password vpass, Passwort
Gui, Add, Button, x212 y259 w210 h30 +Center gLogin, Login
Gui, Add, Button, x212 y299 w210 h20 +Center +BackgroundTrans, Passwort vergessen
Gui, Add, CheckBox, x212 y219 w210 h30 +Center +BackgroundTrans, Passwort Speichern?
Gui, Show, w624 h340, Login ~ Grove Street Family | Marcel_Colbetti
return
Login:
Gui, Submit, nohide
GuiControlGet, UserPasswort ,,pass
GuiControlGet, UserName ,,user
DatenbankID := imp_read_where("accounts", "Benutzername", UserName)
if(imp_row_exist(DatenbankID))
{
if(imp_compare(DatenbankID, "Passwort", UserPasswort))
{
MsgBox, 0, Du wurdest eingeloggt!
return
} else {
MsgBox, 0, Fehler, Das angegebene Passwort ist falsch!
}
} else {
MsgBox, 0, Fehler, Der angegebene Benutzer ( %UserName% ) existiert nicht in der Datenbank!
}
return
GuiClose:
ExitApp
Alles anzeigen