Mit Sicherheit erklärst du mir das richtig aber ich glaube ich kann irgendwie keine Gui's sehen oder wie auch immer...
Hier sind all die Dinge die ich eingstellt usw habe:
function OnPlayerConnect()
ShowDialogLogin()
end
addEventHandler( "onClientResourceStart", getResourceRootElement(getThisResource()), OnPlayerConnect)
function ShowDialogLogin()
GUIEditor_Window = {}
GUIEditor_TabPanel = {}
GUIEditor_Tab = {}
GUIEditor_Button = {}
GUIEditor_Label = {}
GUIEditor_Edit = {}
GUIEditor_Image = {}
GUIEditor_Window[1] = guiCreateWindow(425,215,459,536,"|Willkommen|",false)
GUIEditor_TabPanel[1] = guiCreateTabPanel(31,79,395,272,false,GUIEditor_Window[1])
GUIEditor_Tab[1] = guiCreateTab("Log-In",GUIEditor_TabPanel[1])
GUIEditor_Label[1] = guiCreateLabel(14,14,130,16,"Account:",false,GUIEditor_Tab[1])
guiLabelSetColor(GUIEditor_Label[1],255,255,255)
guiLabelSetVerticalAlign(GUIEditor_Label[1],"top")
guiLabelSetHorizontalAlign(GUIEditor_Label[1],"left",false)
GUIEditor_Edit[1] = guiCreateEdit(12,34,195,26,"",false,GUIEditor_Tab[1])
GUIEditor_Label[2] = guiCreateLabel(14,74,123,16,"Password:",false,GUIEditor_Tab[1])
guiLabelSetColor(GUIEditor_Label[2],255,255,255)
guiLabelSetVerticalAlign(GUIEditor_Label[2],"top")
guiLabelSetHorizontalAlign(GUIEditor_Label[2],"left",false)
GUIEditor_Edit[2] = guiCreateEdit(12,96,196,26,"",false,GUIEditor_Tab[1])
GUIEditor_Button[1] = guiCreateButton(12,139,196,57,"Log-In!",false,GUIEditor_Tab[1])
GUIEditor_Tab[2] = guiCreateTab("Register",GUIEditor_TabPanel[1])
GUIEditor_Label[3] = guiCreateLabel(16,13,125,17,"Accountname:",false,GUIEditor_Tab[2])
guiLabelSetColor(GUIEditor_Label[3],255,255,255)
guiLabelSetVerticalAlign(GUIEditor_Label[3],"top")
guiLabelSetHorizontalAlign(GUIEditor_Label[3],"left",false)
GUIEditor_Edit[3] = guiCreateEdit(14,39,185,25,"",false,GUIEditor_Tab[2])
GUIEditor_Label[4] = guiCreateLabel(13,75,126,16,"Password:",false,GUIEditor_Tab[2])
guiLabelSetColor(GUIEditor_Label[4],255,255,255)
guiLabelSetVerticalAlign(GUIEditor_Label[4],"top")
guiLabelSetHorizontalAlign(GUIEditor_Label[4],"left",false)
GUIEditor_Edit[4] = guiCreateEdit(14,100,186,26,"",false,GUIEditor_Tab[2])
GUIEditor_Button[2] = guiCreateButton(17,157,179,58,"Register!",false,GUIEditor_Tab[2])
GUIEditor_Image[1] = guiCreateStaticImage(139,376,190,142,"images/mtalogo.png",false,GUIEditor_Window[1])
Alles anzeigen
-Ich starte den Server über das Game nicht mit der Server Exe in den Ordnern (sollte ich das tun?)
-in die meta.xml habe ich folgendes geschrieben :
...