Jump to content

Ronni

Members
  • Posts

    3
  • Joined

  • Last visited

Ronni'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. Ronni

    expected near

    I don't know what else to do , i tried define , but i receive it edit : function returnLoginAjax(email, password) account = callRemote("http://portalgamer.net.br/admin/sources/base/mta.php?acao=login", returnLoginAjax, email, password) if account == "true" then outputChatBox ( "mt bem", getRootElement(), 255, 255, 255, false ) else outputChatBox ( "mt mal", getRootElement(), 255, 255, 255, false ) end end addEvent("submitLogin", true) addEventHandler("submitLogin", root, returnLoginAjax) and chat show ''mt mal'' ( account wrong ) , debug don't show erros , some error?
  2. Ronni

    expected near

    thank you very much for help me , removed the first error, but now appeared 2 new errors [01:26:33] WARNING: login\server.lua:4: Bad argument @ 'getAccount' [Expected st ring at argument 1, got nil] [01:26:33] WARNING: login\server.lua:14: Bad argument @ 'triggerClientEvent' [Ex pected string at argument 1, got nil]
  3. Ronni

    expected near

    Hello , I want to make with that the player registering on the forum and he can login into server with your account at the forum , but i have this error : [00:55:49] SCRIPT ERROR: login\server.lua:7: 'then' expected near 'if' [00:55:49] ERROR: Loading script failed: login\server.lua:7: 'then' expected nea r 'if' Server - callRemote("http://urlexample", returnLoginAjax, email, password) function returnLoginAjax(name) local account = getAccount(email, password) if (account ~= false) then if name == "true" if (logIn(account, password) == true) then triggerClientEvent (player, "hideWindow", getRootElement()) else if name == "false" triggerClientEvent (player, "unknownError", getRootElement()) end else triggerClientEvent (player, "loginWrong", getRootElement()) end end addEvent("submitLogin", true) addEventHandler("submitLogin", root, returnLoginAjax) Sorry My Bad English
×
×
  • Create New...