Jump to content

WASSIm.

Members
  • Posts

    1,411
  • Joined

  • Last visited

  • Days Won

    2

Everything posted by WASSIm.

  1. just use..., better unpack
  2. EDIT i get more more problems and is now slow then before, you can see statistics everything up Statistics: http://i.imgur.com/tvm5H5k.png 1) 2) 3)
  3. hi guys i get problem i don't know it... please help ERROR: Client (WASSIm.) triggered serverside event onPlayerChat, but event is not marked as remotly triggerable function commandChats(cmd, ...) local msg = table.concat({...}, " ") triggerServerEvent("onPlayerChat", localPlayer, msg, cmd, true) end
  4. hi guys, what OS template VPS is better for mta server. i have: RAM: 128 MB SWAP: 256 MB Disk Size: 10 GB
  5. WASSIm.

    Blips no work

    i think that should to be better and what do you want local stats = {73, 75, 71, 77, 78} local weapons = {[24] = 100, [26] = 100, [32] = 100, [31] = 150, [46] = 200} local pBlips = {} addEventHandler("onPlayerSpawn", root, function (source) takeAllWeapons(source) setPlayerMoney(source, 0) givePlayerMoney(source, 5000) for _, stat in ipairs(stats) do setPedStat(source, 73, 1000) end for weapon, ammo in pairs(weapons) do giveWeapon(source, weapon, ammo) end pBlips[source] = createBlipAttachedTo(source, 0, 2) end addEventHandler("onResourceStart", resourceRoot, function() for _, player in ipairs(getElementsByType("player")) do if not (isPlayerDead(player)) then pBlips[source] = createBlipAttachedTo(player, 0, 2) end end end) -- Blip system setTimer(function() for player, blip in ipairs(pBlips) do if (isElement(player)) and not (isPlayerDead(player)) then local playerTeam = getPlayerTeam(player) if (playerTeam) then local r, g, b = getTeamColor(playerTeam) setBlipColor(blip, r, g, b) else setBlipColor(blip, 255, 255, 255) end else destroyElement(blip) pBlips[player] = nil end end end, 5000, 0)
  6. addCommandHandler "onClientRender" getElementPosition dxDrawLine3D
  7. WASSIm.

    getServerIP

    you can use this function --By MJNONFIK function getServerIp() callRemote("http://www.nub.hj.cx/getServerIp.php", function(value) if (value ~= "ERROR") then return value end end) return false end
  8. WASSIm.

    timestamp

    that not what i want exactly, i want funtion like this function getTimeDate (timestamp) -- code end outputChatBox(getTimeDate(1302552)) -- return string/show on chat: "2014/5/17 - 22:31:15"
  9. WASSIm.

    timestamp

    its (year/mother/day - hour/minte/secode) to timestamp
  10. function setWeaponStat( ) for _, skill in ipairs({"poor", "std", "pro"}) do setWeaponProperty(24, skill, "damage", 100) end end addEventHandler( "onResourceStart", resourceRoot, setWeaponStat )
  11. WASSIm.

    timestamp

    hi guys i have question, how get (year/mother/day - hour/minte/secode) from timestamp ?
  12. WASSIm.

    [Help] Spawn

    replace all them to this addEventHandler("onVehicleExplode", resourceRoot, function () setTimer(respawnVehicle, 5000, 1, source) end)
  13. WASSIm.

    [Help] Spawn

    local Hydra = createVehicle(520, 951.8,2132.1,20.6,0,0,283.75) addEventHandler("onVehicleExplode", Hydra, function () setTimer(respawnVehicle, 5000, 1, source) end)
  14. elseif ( state == "left" ) and ( source == gridlist ) then local id = tonumber(guiGridListGetItemText(gridlist, guiGridListGetSelectedItem(gridlist), 2)) if id then previewVehicle = createVehicle( id, 1982.9794921875, 2044.2698974609 ,10.8203125) setCameraMatrix( 1971.8072509766, 2031.4422607422, 28.789499282837, 1972.1690673828, 2031.8653564453, 27.958776473999) end
  15. i have other problem, its returned like empty table exports["ZA-database"]:dbQueryZA("SELECT * FROM groupMembers WHERE 'group' = '"..groupName.."' ORDER BY rank DESC")
  16. EDIT solved thank you very much
  17. hi guys i have problem, 3 tables don't created and only groups table created, please help exports["database"]:dbExecZA("CREATE TABLE IF NOT EXISTS groups (ID INTEGER PRIMARY KEY NOT NULL, name TEXT, founder TEXT, info TEXT, bank INT, colour INT, created TEXT)") exports["database"]:dbExecZA("CREATE TABLE IF NOT EXISTS groupMembers (ID INTEGER PRIMARY KEY, group TEXT, name TEXT, account TEXT, rank INT, WL INT, lastOn TEXT, joinedOn TEXT)") exports["database"]:dbExecZA("CREATE TABLE IF NOT EXISTS groupRanks (ID INTEGER PRIMARY KEY, group TEXT, name TEXT, premisson TEXT)") exports["database"]:dbExecZA("CREATE TABLE IF NOT EXISTS groupLogs (ID INTEGER PRIMARY KEY, group TEXT, member TEXT, message TEXT, date TEXT)") Logs: [2014-05-11 16:58:43] Starting group [2014-05-11 16:58:43] WARNING: database\server.lua:16: dbPoll failed; no such table: groupMembers [2014-05-11 16:58:43] WARNING: database\server.lua:16: dbPoll failed; no such table: groupRanks [2014-05-11 16:58:43] ERROR: group\utli.lua:23: bad argument #1 to 'pairs' (table expected, got boolean) [2014-05-11 16:58:43] group restarted successfully [2014-05-11 16:58:43] WARNING: @database\server.lua:45: dbExec failed; (1) near "group": syntax error [2014-05-11 16:58:43] WARNING: @database\server.lua:45: dbExec failed; (1) near "group": syntax error [2014-05-11 16:58:43] WARNING: @database\server.lua:45: dbExec failed; (1) near "group": syntax error
  18. WASSIm.

    spawn event

    i want event start on ped or vehicle spawned like onPlayerSpawn
  19. tell me what your resolution !
×
×
  • Create New...