Jump to content

Fujikatoma

Members
  • Posts

    3
  • Joined

  • Last visited

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

Fujikatoma's Achievements

I ordered some spaghetti with marinara sauce and I got egg noodles and ketchup. I'm an average nobody.

I ordered some spaghetti with marinara sauce and I got egg noodles and ketchup. I'm an average nobody. (2/54)

0

Reputation

  1. After the Client is connected , a mysql query is excecuted and checks if the user exists. If no the rigister GUI will be displayed, if there is an account with his name the login GUI is displayed.
  2. onClientResourceStart isn't the right choice , because it's not called every time the user joins
  3. Hello, i got the error shown in the title with the following code : Server: (onPlayerjoin) triggerClientEvent(source, "onCreateLoginWindow", source) -- Event Triggern Client function createLoginWindow() loginGUI = {} showCursor(true) guiSetInputEnabled(true) loginGUI.window = guiCreateWindow(623, 328, 367, 161, "Login", false) guiWindowSetSizable(loginGUI.window, false) guiWindowSetMovable(loginGUI.window, false) loginGUI.label = guiCreateLabel(41, 35, 280, 15, "Es exestiert bereits ein Account mit dem Namen", false, loginGUI.window) loginGUI.btnLogin = guiCreateButton(41, 102, 280, 31, "Login", false, loginGUI.window) loginGUI.edtPassword = guiCreateEdit(40, 64, 281, 23, "", false, loginGUI.window) addEventHandler("onClientGUIClick", loginGUI.btnLogin, function(button, state) if button == "left" and state == "up" then local password = guiGetText(loginGUI.edtPassword) if password then triggerServerEvent("submitLogin", getRootElement(), password) else outputChatBox("Please enter your password.") end end end , false) end addEvent( "onCreateLoginWindow", true ) addEventHandler( "onCreateLoginWindow", localPlayer, createLoginWindow) Does someone has an idear how to fixx that error ?
×
×
  • Create New...