Zcraks

Members
  • Content Count

    38
  • Joined

  • Last visited

Community Reputation

1 Neutral

1 Follower

About Zcraks

  • Rank
    Rat

Recent Profile Visitors

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

  1. Dont working dxCreateFont quality. local font = dxCreateFontClient("font.otf", 100, false, "cleartype_natural" )
  2. Zcraks

    Custom radar

    Hi, who knows to how a create custom circle radar ?
  3. Hi, who knows how to create a character clothes system ? Don't CJ system.
  4. x1, y1 = getScreenFromWorldPosition(v[1]+0.5, v[2], v[3]+1) x2, y2 = getScreenFromWorldPosition(v[1]+0.5, v[2], v[3]) ... getDistanceBetweenPointAndSegment2D(clickedX, clickedY, x1, y1, x2, y2) attempt to call global "getDistanceBetweenPointAndSegment2D" (a nil value)
  5. Hi, how create a click for dxDrawMaterialLine3D ?
  6. How add signs "A-a, ..., Z-z", "0-9",".", "_" , "@" for white list ? And check if login_edit then do not add "@" ?
  7. How to check for signs and prohibit pressing the spacebar in guiCreateEdit ?
  8. Zcraks

    table problem

    local button = {} function menu button[1] = ... button[2] = ... function click () if source == button ??????? and source ~= guiWind then if source == button[1] then ... How to check for all buttons?
  9. Zcraks

    onPickupHit

    for k,i in pairs(pickups) do local pickup[k] = createPickup( i[1], i[2], i[3], i[4], i[5], 0) end function onPickupH (thePlayer) for k,v in pairs(pickups) do if source == pickup[k] then local num = k spawnPlayer(thePlayer,num[v][7],num[v][8],num[v][9],-40,getElementModel(thePlayer), v[10],0) end end end addEventHandler("onPickupHit", root, onPickupH) server.Lua:2 unexpected symbol near '['
  10. -- [register] local passwordHash = passwordHash(password,"bcrypt",{}) if (passwordHash) then ... -- [login] outputDebugString(password) -- true outputDebugString(passwordHash) -- true if (passwordVerify(password, passwordHash)) then ... else outputDebugString("Account not found") end -- Why is the password still does not match ?
  11. Zcraks

    Mysql

    Why id = nil ? dbQuery(function(query) local result = dbPoll(query, -1) if result then setElementData(ThePlayer, "id", id) end end, MysqlLink, "SELECT id FROM account WHERE 'login'=?", login)
  12. Zcraks

    clothing system

    How to make customization by type CJ ?
  13. Zcraks

    Working limit

    while playersInJobs["Job"] == 10 do while playersInTurn["Job"] == 0 do if playersInTurn["Job"][1] and isElement ( playersInTurn["Job"][1] ) then outputChatBox ( "Go to the job" , playersInTurn["Job"][1] ) one = (playersInTurn["lawn"][1]) timer = setTimer(function (one) table.remove(playersInTurn["lawn"], one) outputChatBox("Time is out", one) end, 20000, 1) break end end end How to make it work?
  14. Zcraks

    Working limit

    if #playersInJobs["job-name"] <= 9 and #playersInTurn["job-name"] ~= nil then for k,i in ipairs(playersInTurn["job-name"]) do player = getPlayerFromNick (playersInTurn["job-name"][i]) if player ~= false then outputChatBox ("Go to job !", player) end end end How to make sure that when a place becomes available, it notifies the first player in the queue ?