Jump to content

WhoAmI

Members
  • Posts

    1,248
  • Joined

  • Last visited

Everything posted by WhoAmI

  1. Check what getZoneName returns.
  2. Vehicle and chat system were started earlier than MySQL resource. That's why it shows that error.
  3. Are you sure? Check if you typed correct name and you are calling it s-side. Check also if you exported function in mysql resource. Show me your meta.
  4. /start mysql Use exports
  5. What do you mean by installing mysql? You have to have local MySQL server. XAMPP is good solution.
  6. libmysql goes to server/ folder.
  7. Probably you don't have libmysql.dll.
  8. Cmon man... Remove this from mta_mysql.dll.
  9. What script are you using? Give me code.
  10. Create gui edit, set alpha to 0 and property "AlwaysOnTop" to true. Then, create dxDrawText in same position as gui edit and set it's text from guiGetText function.
  11. First line of radar function. Change thePlayer to player.
  12. You can create the column "type" and insert the "1" or "2". Depends what type of vehicle you want to insert.
  13. Use return instead of cancelEvent.
  14. Did you add it client side? Any errors?
  15. https://wiki.multitheftauto.com/wiki/On ... ayerDamage On example you have what you want. You must change weapon ID only.
  16. Daj ten kod po stronie client. addEventHandler ( "onClientPlayerDamage", root, function ( ) cancelEvent ( ) end )
  17. Check if module works. Do you see this message while turning on server?
  18. Well, did you put it on local server or hosted server? If local it should work.
  19. So probably, module doesn't work well if mysql_connect doesn't work.
  20. Give me EXACTLY an error what you get.
  21. And do you have libmysql.dll?
  22. Probably you don't have MySQL module on server which is necessary if you are using mysql_ functions. However, mysql_ is kinda old and it isn't that effective anymore. You should use db functions instead (dbConnect, dbQuery, dbPoll, dbExec etc.) which don't use custom MySQL module.
  23. That's not possible. Probaby you are calling command in bad way.
  24. function getPlayerFromPartialName(name) local name = name and string.lower(string.gsub(name, "#%x%x%x%x%x%x", "")) or nil if name then for _, player in ipairs(getElementsByType("player")) do local name_ = string.lower(string.gsub(getPlayerName(player), "#%x%x%x%x%x%x", "")) if string.find(name_, name, 1, true) then return player end end end return false end function privateMessage(thePlayer, _, sendToName, ...) local message = table.concat({...}, " ") if sendToName then toPlayer = getPlayerFromPartialName(sendToName) if isElement ( toPlayer ) then if toPlayer ~= thePlayer then if message ~= "" and #message > 0 then outputChatBox("PM to"..getPlayerName(toPlayer)..":"..message, thePlayer, 255, 255, 0) outputChatBox("PM from"..getPlayerName(thePlayer)..":"..message, toPlayer, 255, 255, 0) setElementData(thePlayer, "pmPartner", toPlayer) setElementData(toPlayer, "pmPartner", thePlayer) else outputChatBox("Syntax:/pm [part of name] [message]", thePlayer, 255, 0, 0) return false end else outputChatBox("You can't speak to your self.", thePlayer, 255, 0, 0) return false end else outputChatBox("Player not found.", thePlayer, 255, 0, 0) return false end else outputChatBox("Syntax: /pm [part of name] [message]", thePlayer, 255, 0, 0) return false end end addCommandHandler("pm", privateMessage)
×
×
  • Create New...