Jump to content

WASSIm.

Members
  • Posts

    1,410
  • Joined

  • Last visited

  • Days Won

    2

Everything posted by WASSIm.

  1. Hi guys, when i start script makes server high ping +2000 and keep show this in console [18:36:28] ERROR: Infinite/too long execution (ZA-zombies) [18:36:28] ERROR: ZA-zombies/server.lua:25: Aborting; infinite running script in ZA-zombies --RESOURCE START/INITIAL SETUP addEventHandler("onResourceStart", resourceRoot, function ( ) for _,thePlayer in ipairs(getElementsByType("player")) do bindKey(thePlayer, "fire", "down", function(source) local target = getPedTarget(source) if (target) and (getElementType(target) == "player") then setZombieBitten(source, target) end end) end setTimer(setangle, ZombieSpeedCheck, 0) -- KEEPS ZOMBIES FACING THE RIGHT DIRECTION setTimer(triggerEvent, 2000, 0, "onCheckZombie", root) --Clear far zombies & Spawns zombies in random locations end)
  2. Now i got this: -bash: ./mta-server: No such file or directory
  3. Hi guys i am back to MTA its mean i will back my server but when i start it its says ./mta-server: Permission denied so anyone can help me to solved this ??
  4. You need change handling again when he is going backwards
  5. Hi guys i have question, what is different if make save data when player left server or when data changed ? ps: i save data with SQLite
  6. but i use type and returning table
  7. Hi guys i need help, i got that problem and i try anyway to sloved it but nothing ERROR: ZA-staff/server.lua:239: invaild value (boolean) at indox 5 in table for 'concat' addEvent("onAdminEditPanel", true) addEventHandler("onAdminEditPanel", root, function (command, ...) if (command) and (...) then local args = {...} for i, v in ipairs(args) do if type(v) == "boolean" then table.remove(args, i) end end setTimer(executeCommandHandler, 100, 1, "c"..command, source, table.concat(args, " ")) end end)
  8. Thank you its work, But i have same problem from other code the seconded argument and other don't work if (string.sub(message, 1, 1) == "/") then local argcmd = split(message, " ") local command = tostring(argcmd[1]:gsub("/", "", 1)) table.remove(argcmd, 1) executeCommandHandler(command, source, unpack(argcmd)) triggerClientEvent(source, "onClientPlayerChatCommand", source, command, unpack(argcmd)) end
  9. Walahi konet tnajam t7al topic 3alach la3waj
  10. is better if use like this: local x, y, z = unpack(markers[math.random( #markers)]) local marker = createMarker(x, y, z, "cylinder", 1.5, 255, 255, 0, 170)
  11. problem not on command kick, is on event onAdminEditPanel
×
×
  • Create New...