Normand

Members
  • Content Count

    16
  • Joined

  • Last visited

Community Reputation

0 Neutral

About Normand

  • Rank
    Square

Details

  • Gang
    .
  • Location
    Berettyóújfalu
  • Occupation
    .
  • Interests
    .

Recent Profile Visitors

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

  1. mysql_kapcsolat = dbConnect("sqlite", "szerver.db", _, _, "share=0", "batch=0", "autoreconnect=1", "log=1")
  2. The connection is okay but dbQuery and dbPoll first argument got nil. ( sorry for my bad english ) ERROR: MYSQL CONNECTION CODE: "felhasznalo" SCRIPT:
  3. it is works thanks
  4. Please help, someone.
  5. My new problem, double messages. Default chat and my chat. Richard Norrington: asd Richard Norrington mondja: asd Code: local chat_tavolsag = 100 function onChat(msg, messageType) local X, Y, Z = getElementPosition(source) local nev = getPlayerName(source) for _, v in ipairs(getElementsByType("player")) do if messageType == 0 then cancelEvent() if isPlayerInRangeOfPoint(v, X, Y, Z, chat_tavolsag) then outputChatBox("".. nev .." mondja: ".. msg .."", v, 255, 255, 255, true) end end end end addEventHandler("onPlayerChat", root, onChat)
  6. So i tried to make a local chat based on the basic mta chat function (The T Bind) but it does not work because i think the mta basic chat overwrites my script.
  7. Error: [2017-12-28 09:08:30] WARNING: chat/server.lua:44: Bad argument @ 'getElementPosition' [Expected element at argument 1, got nil] [2017-12-28 09:08:30] WARNING: chat/server.lua:45: Bad argument @ 'getPlayerName' [Expected element at argument 1, got nil] [2017-12-28 09:08:30] WARNING: chat/server.lua:55: Bad argument @ 'addEventHandler' [Expected function at argument 3, got none] Code: local chat_tavolsag = 100 function onChat(player, _, msg) local X, Y, Z = getElementPosition(player) local nev = getPlayerName(player) for _, v in ipairs(getElementsByType("player")) do if messageType == 0 then if isPlayerInRangeOfPoint(v, X, Y, Z, chat_tavolsag) then outputChatBox("".. nev .." mondja: ".. msg .."", v, 255, 255, 255, true) end end end end addEventHandler("onPlayerChat", getRootElement(), onChat(player, _, messsage)) Please help, i want a local chat.
  8. Ohh, :~, What?! I don't understand it, sorry. Please fix it for all player, please. Code: Client: function szirenak() sound = playSound("szirena.mp3") end addEvent("SzirenaLejatszasa", true) addEventHandler("SzirenaLejatszasa", root, szirenak) Server: function Szirena(player, command) triggerClientEvent(player, "SzirenaLejatszasa", player) end addCommandHandler("szirena", Szirena)
  9. How to trigger root to client? Sorry for my bad english.
  10. I have a air raid siren script, but when i start that, my friends can't hear that.